Skip to content

Commit b06c94c

Browse files
committed
Include pages with WRITECOPY in SigScan
1 parent 05e2386 commit b06c94c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ModUtils.h

Lines changed: 2 additions & 2 deletions
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;
@@ -350,7 +350,7 @@ namespace ModUtils
350350

351351
for (size_t i = 0; i < 10000; i++)
352352
{
353-
HWND hwnd = FindWindowExA(NULL, NULL, NULL, "ELDEN RING™");
353+
HWND hwnd = FindWindowExA(NULL, NULL, NULL, "ELDEN RING");
354354
DWORD processId = 0;
355355
GetWindowThreadProcessId(hwnd, &processId);
356356
if (processId == GetCurrentProcessId())

0 commit comments

Comments
 (0)