windows: Fix app icon loading (#22918)
Closes #22602 Release Notes: - N/A --------- Co-authored-by: 张小白 <364772080@qq.com>
This commit is contained in:
@@ -717,7 +717,7 @@ fn load_icon() -> Result<HICON> {
|
|||||||
let handle = unsafe {
|
let handle = unsafe {
|
||||||
LoadImageW(
|
LoadImageW(
|
||||||
module,
|
module,
|
||||||
IDI_APPLICATION,
|
windows::core::PCWSTR(1 as _),
|
||||||
IMAGE_ICON,
|
IMAGE_ICON,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|||||||
Reference in New Issue
Block a user