From 1b776645271e84d34c463e498eba0b0b29e00055 Mon Sep 17 00:00:00 2001 From: Michael Maltsev <4129781+m417z@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:16:54 +0300 Subject: [PATCH] Taskbar height and icon size v1.2.14 * Fixed a crash in old builds of Windows 11 version 22H2. --- mods/taskbar-icon-size.wh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/taskbar-icon-size.wh.cpp b/mods/taskbar-icon-size.wh.cpp index 569bd4a12..949858647 100644 --- a/mods/taskbar-icon-size.wh.cpp +++ b/mods/taskbar-icon-size.wh.cpp @@ -2,7 +2,7 @@ // @id taskbar-icon-size // @name Taskbar height and icon size // @description Control the taskbar height and icon size, improve icon quality (Windows 11 only) -// @version 1.2.13 +// @version 1.2.14 // @author m417z // @github https://github.com/m417z // @twitter https://twitter.com/m417z @@ -513,7 +513,7 @@ void WINAPI TaskbarController_UpdateFrameHeight_Hook(void* pThis) { // or // 4C:8B81 80020000 | mov r8,qword ptr ds:[rcx+280] const BYTE* p = (const BYTE*)TaskbarController_OnGroupingModeChanged; - if (p[0] == 0x48 && p[1] == 0x83 && p[2] == 0xEC && + if (p && p[0] == 0x48 && p[1] == 0x83 && p[2] == 0xEC && (p[4] == 0x48 || p[4] == 0x4C) && p[5] == 0x8B && (p[6] & 0xC0) == 0x80) { LONG offset = *(LONG*)(p + 7);