user32: Specify size for default window icon in NC_IconForWindow.

This commit is contained in:
Mark Harmstone 2015-08-01 15:03:13 +01:00 committed by Alexandre Julliard
parent 0adad1f573
commit 27bffea148
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ static HICON NC_IconForWindow( HWND hwnd )
* get the default one. * get the default one.
*/ */
if (!hIcon && (GetWindowLongW( hwnd, GWL_STYLE ) & DS_MODALFRAME)) if (!hIcon && (GetWindowLongW( hwnd, GWL_STYLE ) & DS_MODALFRAME))
hIcon = LoadImageW(0, (LPCWSTR)IDI_WINLOGO, IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR); hIcon = LoadImageW(0, (LPCWSTR)IDI_WINLOGO, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON),
GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR);
return hIcon; return hIcon;
} }