be more careful inserting waffle

This commit is contained in:
Akash Mozumdar 2022-01-01 21:29:13 -07:00
parent a17d8d5993
commit 44c8e4f94c

View File

@ -5984,7 +5984,7 @@ bool InsertWaffleHook()
{
bool found = false;
for (DWORD i = processStartAddress + 0x1000; i < processStopAddress - 4; i++)
if (*(DWORD *)i == 0xac68) {
if (*(DWORD *)i == 0xac68 && *(BYTE*)(i + 4) == 0) {
HookParam hp = {};
hp.address = i;
hp.length_offset = 1;