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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-05-19 16:38:34 +09:00
parent 4a76289464
commit c007b3cd46
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}