Skip to content

Commit fa9ee5c

Browse files
authoredMay 9, 2022
Merge pull request #9 from giniyat202/master
Include pages with WRITECOPY in SigScan
2 parents 05e2386 + ebdd5bd commit fa9ee5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ModUtils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ namespace ModUtils
230230
uintptr_t protection = (uintptr_t)memoryInfo.Protect;
231231
uintptr_t state = (uintptr_t)memoryInfo.State;
232232

233-
if ((protection == PAGE_EXECUTE_READWRITE || protection == PAGE_READWRITE || protection == PAGE_READONLY) && state == MEM_COMMIT)
233+
if ((protection == PAGE_EXECUTE_READWRITE || protection == PAGE_READWRITE || protection == PAGE_READONLY || protection == PAGE_WRITECOPY || protection == PAGE_EXECUTE_WRITECOPY) && state == MEM_COMMIT)
234234
{
235235
Log("Checking region: %p", regionStart);
236236
currentAddress = regionStart;
@@ -525,4 +525,4 @@ namespace ModUtils
525525
MemCopy((address + 6), (uintptr_t)&destination, 8);
526526
Log("Created jump from %p to %p with a clearance of %i", address, destination, clearance);
527527
}
528-
}
528+
}

0 commit comments

Comments
 (0)
Please sign in to comment.