windows: Fix app icon loading (#22918)

Closes #22602

Release Notes:

- N/A

---------

Co-authored-by: 张小白 <364772080@qq.com>
This commit is contained in:
faint
2025-01-17 07:53:16 +00:00
committed by GitHub
co-authored by 张小白
parent 70db427fc8
commit d4d36d1adf
+1 -1
View File
@@ -717,7 +717,7 @@ fn load_icon() -> Result<HICON> {
let handle = unsafe {
LoadImageW(
module,
IDI_APPLICATION,
windows::core::PCWSTR(1 as _),
IMAGE_ICON,
0,
0,