From 9049638dac6774eeceafa51a4e2a5e17acabf36e Mon Sep 17 00:00:00 2001 From: Thamatip Chitpong Date: Wed, 2 Aug 2023 13:40:50 +0700 Subject: [PATCH] [EXPLORER] Fix taskbar large icon for some apps Addendum to 0e8cf6f (#5465). CORE-11698 --- base/shell/explorer/taskswnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/shell/explorer/taskswnd.cpp b/base/shell/explorer/taskswnd.cpp index abe3f10ae47..2602a76c686 100644 --- a/base/shell/explorer/taskswnd.cpp +++ b/base/shell/explorer/taskswnd.cpp @@ -512,11 +512,11 @@ public: } #undef GET_ICON - hIcon = (HICON)GetClassLongPtr(hwnd, GCLP_HICONSM); + hIcon = (HICON)GetClassLongPtr(hwnd, g_TaskbarSettings.bSmallIcons ? GCLP_HICONSM : GCLP_HICON); if (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)