From 57919b2a11131543c3087791cbb42288f9fb9796 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 10 Feb 2015 22:31:24 -0800 Subject: [PATCH] Seems like games are allowed to set the execute bit. (it may just be masked away by the system) --- src/xenia/kernel/xboxkrnl_memory.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xenia/kernel/xboxkrnl_memory.cc b/src/xenia/kernel/xboxkrnl_memory.cc index 70c0f3d8f..3ed9f6f74 100644 --- a/src/xenia/kernel/xboxkrnl_memory.cc +++ b/src/xenia/kernel/xboxkrnl_memory.cc @@ -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.