From 312fa7f7fca3a9a078cc4095fec80712106720c8 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Fri, 21 Jan 2022 11:18:51 +0200 Subject: [PATCH] Removed erroneous VirtualProtect --- ExplorerPatcher/dllmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 01d2889..72c7b78 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -7968,7 +7968,7 @@ void InjectShellExperienceHost() if (section->SizeOfRawData && !bTwice) { DWORD dwOldProtect; - VirtualProtect(hQA + section->VirtualAddress, section->SizeOfRawData, PAGE_EXECUTE_READWRITE, &dwOldProtect); + //VirtualProtect(hQA + section->VirtualAddress, section->SizeOfRawData, PAGE_EXECUTE_READWRITE, &dwOldProtect); char* pCandidate = NULL; while (TRUE) { @@ -7999,7 +7999,7 @@ void InjectShellExperienceHost() } pCandidate += sizeof(seh_pattern1); } - VirtualProtect(hQA + section->VirtualAddress, section->SizeOfRawData, dwOldProtect, &dwOldProtect); + //VirtualProtect(hQA + section->VirtualAddress, section->SizeOfRawData, dwOldProtect, &dwOldProtect); } } section++;