1
0
Fork 0
This commit is contained in:
mrgreywater 2015-09-18 14:14:28 +02:00
parent f7db29e91a
commit cb0f278078
1 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ bool MemIsCodePage(uint Address, bool Refresh)
if(!MemGetPageInfo(Address, &pageInfo, Refresh))
return false;
return (pageInfo.mbi.Protect & PAGE_EXECUTE) == PAGE_EXECUTE;
return (pageInfo.mbi.Protect & (PAGE_EXECUTE | PAGE_EXECUTE_READ | PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_WRITECOPY)) != 0;
}
uint MemAllocRemote(uint Address, uint Size, DWORD Type, DWORD Protect)
@ -472,4 +472,4 @@ bool MemPageRightsFromString(DWORD* Protect, const char* Rights)
*Protect |= PAGE_WRITECOPY;
return (*Protect != 0);
}
}