Alex Henrie alexhenrie24@gmail.com writes:
2016-03-24 6:53 GMT-06:00 Alexandre Julliard julliard@winehq.org:
Alex Henrie alexhenrie24@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?
I don't think you want to prefer the small one. If there's no big one at all, maybe, but otherwise it's not going to give good results.