1
0
Fork 0

Merge pull request #392 from mrgreywater/patch-1

Fix #372
This commit is contained in:
Duncan Ogilvie 2015-09-18 14:18:06 +02:00
commit 00c66d1bd1
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);
}
}