Seems like games are allowed to set the execute bit.

(it may just be masked away by the system)
This commit is contained in:
Ben Vanik 2015-02-10 22:31:24 -08:00
parent ce08c58610
commit 57919b2a11
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ SHIM_CALL NtAllocateVirtualMemory_shim(PPCContext* ppc_state,
// Don't allow games to set execute bits.
if (protect_bits & (X_PAGE_EXECUTE | X_PAGE_EXECUTE_READ |
X_PAGE_EXECUTE_READWRITE | X_PAGE_EXECUTE_WRITECOPY)) {
SHIM_SET_RETURN_32(X_STATUS_ACCESS_DENIED);
return;
XELOGW("Game setting EXECUTE bit on allocation");
}
// Adjust size.