aa compilerr

This commit is contained in:
Milxnor
2023-06-23 21:02:06 -04:00
parent 0ca1350d92
commit 3f8ca2888e
5 changed files with 17 additions and 7 deletions

View File

@@ -150,10 +150,12 @@ uint64 ApplyGameSessionPatch()
return 0;
}
LOG_INFO(LogDev, "ByteToPatch: 0x{:x}", __int64(ByteToPatch) - __int64(GetModuleHandleW(0)));
DWORD dwProtection;
VirtualProtect((PVOID)ByteToPatch, 1, PAGE_EXECUTE_READWRITE, &dwProtection);
*ByteToPatch = 0x85;
*ByteToPatch = 0x85; // jz -> jnz
DWORD dwTemp;
VirtualProtect((PVOID)ByteToPatch, 1, dwProtection, &dwTemp);