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:
parent
4a76289464
commit
c007b3cd46
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue