[EXPLORER] Fix taskbar large icon for some apps

Addendum to 0e8cf6f (#5465).
CORE-11698
This commit is contained in:
Thamatip Chitpong 2023-08-02 13:40:50 +07:00
parent 0160354145
commit 9049638dac

View file

@ -512,11 +512,11 @@ public:
} }
#undef GET_ICON #undef GET_ICON
hIcon = (HICON)GetClassLongPtr(hwnd, GCLP_HICONSM); hIcon = (HICON)GetClassLongPtr(hwnd, g_TaskbarSettings.bSmallIcons ? GCLP_HICONSM : GCLP_HICON);
if (hIcon) if (hIcon)
return hIcon; return hIcon;
return (HICON)GetClassLongPtr(hwnd, GCLP_HICON); return (HICON)GetClassLongPtr(hwnd, g_TaskbarSettings.bSmallIcons ? GCLP_HICON : GCLP_HICONSM);
} }
INT UpdateTaskItemButton(IN PTASK_ITEM TaskItem) INT UpdateTaskItemButton(IN PTASK_ITEM TaskItem)