Commit 95b96a4a authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

winex11.drv: Obtain icon info for icons passed to fetch_icon_data().

SetWindowIcon can pass an icon as a parameter, but in that case NtUserGetIconInfo is never called, so the icon info is never filled. Fixes a regression introduced by 3eb944c0. Signed-off-by: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
parent ee5cdea9
......@@ -625,6 +625,7 @@ static void fetch_icon_data( HWND hwnd, HICON icon_big, HICON icon_small )
unsigned long *bits;
Pixmap icon_pixmap, mask_pixmap;
icon_big = get_icon_info( icon_big, &ii );
if (!icon_big)
{
icon_big = get_icon_info( (HICON)send_message( hwnd, WM_GETICON, ICON_BIG, 0 ), &ii );
......@@ -637,6 +638,8 @@ static void fetch_icon_data( HWND hwnd, HICON icon_big, HICON icon_small )
icon_big = get_icon_info( icon_big, &ii );
}
}
icon_small = get_icon_info( icon_small, &ii_small );
if (!icon_small)
{
icon_small = get_icon_info( (HICON)send_message( hwnd, WM_GETICON, ICON_SMALL, 0 ), &ii_small );
......
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