From efd52cf951e226a0d351a1810fd37e2b46ce21ad Mon Sep 17 00:00:00 2001 From: Valentin-Gabriel Radu Date: Tue, 22 Mar 2022 10:14:11 +0200 Subject: [PATCH] Taskbar10: Fixed inactive (for now) case --- ExplorerPatcher/TaskbarCenter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ExplorerPatcher/TaskbarCenter.c b/ExplorerPatcher/TaskbarCenter.c index a72ed58..bf6b461 100644 --- a/ExplorerPatcher/TaskbarCenter.c +++ b/ExplorerPatcher/TaskbarCenter.c @@ -478,8 +478,8 @@ BOOL TaskbarCenter_SHWindowsPolicy(REFIID riid) } else if (*((unsigned char*)_ReturnAddress() + 8) == 0x84 && VirtualProtect((unsigned char*)_ReturnAddress() + 13, 2, PAGE_EXECUTE_READWRITE, &flOldProtect)) { - *((unsigned char*)_ReturnAddress() + 13) += 0x90; - *((unsigned char*)_ReturnAddress() + 13) += 0x90; + *((unsigned char*)_ReturnAddress() + 13) = 0x90; + *((unsigned char*)_ReturnAddress() + 14) = 0x90; VirtualProtect((unsigned char*)_ReturnAddress() + 13, 2, flOldProtect, &flOldProtect); } bTaskbarCenterHasPatchedSHWindowsPolicy = TRUE; @@ -487,4 +487,4 @@ BOOL TaskbarCenter_SHWindowsPolicy(REFIID riid) return 1; } return SHWindowsPolicy(riid); -} \ No newline at end of file +}