fixed 1.8

This commit is contained in:
Gray
2025-07-30 00:36:31 -04:00
parent dbcb30c8d6
commit 63bf8785fa
3 changed files with 16 additions and 1 deletions

View File

@@ -1269,7 +1269,13 @@ DWORD WINAPI Main(LPVOID)
std::cout << "before byte: " << (int)*before << '\n';
DWORD dwProtection;
VirtualProtect((PVOID)before, 1, PAGE_EXECUTE_READWRITE, &dwProtection);
*before = 0x74; // jump if zero
DWORD dwTemp;
VirtualProtect((PVOID)before, 1, dwProtection, &dwTemp);
}
}