From 37eaac9d48b9b72d550923d4ecc4570f15e128bb Mon Sep 17 00:00:00 2001 From: Sam Wilde Date: Fri, 16 Aug 2024 12:46:39 +0100 Subject: [PATCH] fix(launcher): restore kernel32 memory protection after patching --- code/client/launcher/MiniDump.Shared.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/client/launcher/MiniDump.Shared.cpp b/code/client/launcher/MiniDump.Shared.cpp index 6ebc38c51d..5c0075f682 100644 --- a/code/client/launcher/MiniDump.Shared.cpp +++ b/code/client/launcher/MiniDump.Shared.cpp @@ -332,6 +332,8 @@ extern "C" DLL_EXPORT bool InitializeExceptionHandler() #else *(uint32_t*)unhandledFilter = 0x900004C2; #endif + + VirtualProtect(unhandledFilter, 4, oldProtect, &oldProtect); } }