From 1e369afa3d70bbb6ae35f974f20f09f377a71cbe Mon Sep 17 00:00:00 2001 From: Gliniak Date: Fri, 17 Jun 2022 22:23:39 +0200 Subject: [PATCH] [Memory] Allocate system heap memory from bottom of heap last quarter Aka. From 0x30000000 --- src/xenia/memory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/memory.cc b/src/xenia/memory.cc index b37418050..730972f25 100644 --- a/src/xenia/memory.cc +++ b/src/xenia/memory.cc @@ -555,7 +555,7 @@ uint32_t Memory::SystemHeapAlloc(uint32_t size, uint32_t alignment, uint32_t address; if (!heap->AllocSystemHeap( size, alignment, kMemoryAllocationReserve | kMemoryAllocationCommit, - kMemoryProtectRead | kMemoryProtectWrite, true, &address)) { + kMemoryProtectRead | kMemoryProtectWrite, false, &address)) { return 0; } Zero(address, size);