Commit 27bffea1 authored by Mark Harmstone's avatar Mark Harmstone Committed by Alexandre Julliard

user32: Specify size for default window icon in NC_IconForWindow.

parent 0adad1f5
...@@ -172,7 +172,8 @@ static HICON NC_IconForWindow( HWND hwnd ) ...@@ -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;
} }
......
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