diff --git a/programs/winetest/gui.c b/programs/winetest/gui.c index f13cc1872c..45b3232cc3 100644 --- a/programs/winetest/gui.c +++ b/programs/winetest/gui.c @@ -433,8 +433,9 @@ DlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) switch (msg) { case WM_INITDIALOG: SendMessage (hwnd, WM_SETICON, ICON_SMALL, - (LPARAM)LoadIcon (GetModuleHandle (NULL), - MAKEINTRESOURCE (IDI_WINE))); + (LPARAM)LoadImage( GetModuleHandle (NULL), MAKEINTRESOURCE (IDI_WINE), IMAGE_ICON, + GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), + LR_SHARED )); SendMessage (hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon (GetModuleHandle (NULL), MAKEINTRESOURCE (IDI_WINE)));