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 10:53:16 +03:00 committed by GitHub
parent 70db427fc8
commit d4d36d1adf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,