Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ModUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ namespace ModUtils
uintptr_t protection = (uintptr_t)memoryInfo.Protect;
uintptr_t state = (uintptr_t)memoryInfo.State;

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