[PATCH] winex11: Don't put a default icon on modal dialogs.
Alex Henrie
alexhenrie24 at gmail.com
Thu Mar 24 10:55:39 CDT 2016
2016-03-24 6:53 GMT-06:00 Alexandre Julliard <julliard at winehq.org>:
> Alex Henrie <alexhenrie24 at gmail.com> writes:
>
>> @@ -611,7 +612,7 @@ static void fetch_icon_data( HWND hwnd, HICON icon_big, HICON icon_small )
>> if (!icon_small) icon_small = (HICON)GetClassLongPtrW( hwnd, GCLP_HICONSM );
>> }
>>
>> - if (!GetIconInfo(icon_big, &ii)) return;
>> + if (!GetIconInfo(icon_small, &ii) && !GetIconInfo(icon_big, &ii)) return;
>
> This doesn't make sense. What are you trying to do?
I'm trying to make the function not fail if there is no big icon, and
at the same time prefer the small icon over the big icon. What's the
right way?
-Alex
More information about the wine-devel
mailing list