winex11: Get the icon from the window in case it was changed before the whole window was created.

This commit is contained in:
Alexandre Julliard 2008-01-23 16:40:54 +01:00
parent 12d1d4041a
commit e929e3b603
1 changed files with 3 additions and 1 deletions

View File

@ -849,8 +849,10 @@ static void set_initial_wm_hints( Display *display, struct x11drv_win_data *data
if (data->wm_hints)
{
HICON icon = (HICON)SendMessageW( data->hwnd, WM_GETICON, ICON_BIG, 0 );
if (!icon) icon = (HICON)GetClassLongPtrW( data->hwnd, GCLP_HICON );
data->wm_hints->flags = 0;
set_icon_hints( display, data, (HICON)GetClassLongPtrW( data->hwnd, GCLP_HICON ) );
set_icon_hints( display, data, icon );
}
}