mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
be more careful inserting waffle
This commit is contained in:
parent
a17d8d5993
commit
44c8e4f94c
@ -5984,7 +5984,7 @@ bool InsertWaffleHook()
|
|||||||
{
|
{
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for (DWORD i = processStartAddress + 0x1000; i < processStopAddress - 4; i++)
|
for (DWORD i = processStartAddress + 0x1000; i < processStopAddress - 4; i++)
|
||||||
if (*(DWORD *)i == 0xac68) {
|
if (*(DWORD *)i == 0xac68 && *(BYTE*)(i + 4) == 0) {
|
||||||
HookParam hp = {};
|
HookParam hp = {};
|
||||||
hp.address = i;
|
hp.address = i;
|
||||||
hp.length_offset = 1;
|
hp.length_offset = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user