[Memory] Allocate system heap memory from bottom of heap last quarter

Aka. From 0x30000000
This commit is contained in:
Gliniak 2022-06-17 22:23:39 +02:00
parent 0b183a3582
commit 1e369afa3d
1 changed files with 1 additions and 1 deletions

View File

@ -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);