Commit c007b3cd authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Load the default app icon with LR_SHARED to avoid a leak.

parent 4a762894
......@@ -173,7 +173,7 @@ static HICON NC_IconForWindow( HWND hwnd )
*/
if (!hIcon && !(GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_DLGMODALFRAME))
hIcon = LoadImageW(0, (LPCWSTR)IDI_WINLOGO, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON),
GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR);
GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR | LR_SHARED);
return hIcon;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment