Mark Harmstone : user32: Specify size for default window icon in NC_IconForWindow.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 3 14:52:36 CDT 2015


Module: wine
Branch: master
Commit: 27bffea1486b134b58cc30d69be97f7f496010b3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=27bffea1486b134b58cc30d69be97f7f496010b3

Author: Mark Harmstone <hellas at burntcomma.com>
Date:   Sat Aug  1 15:03:13 2015 +0100

user32: Specify size for default window icon in NC_IconForWindow.

---

 dlls/user32/nonclient.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index 11b8d08..1267ab6 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -172,7 +172,8 @@ static HICON NC_IconForWindow( HWND hwnd )
      * get the default one.
      */
     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;
 }
 




More information about the wine-cvs mailing list