Browse Source

[hle] fix heap allocs

pull/4181/head
Exverge 7 days ago
parent
commit
07f5b71123
No known key found for this signature in database GPG Key ID: DAD399BCC5FB77E4
  1. 2
      src/core/hle/kernel/k_memory_manager.cpp

2
src/core/hle/kernel/k_memory_manager.cpp

@ -254,7 +254,7 @@ Result KMemoryManager::AllocatePageGroupImpl(KPageGroup* out, size_t num_pages,
const bool fix_addr = expected_vaddr != 0 && Settings::IsFastmemEnabled(); const bool fix_addr = expected_vaddr != 0 && Settings::IsFastmemEnabled();
// Choose a heap based on our page size request // Choose a heap based on our page size request
s32 heap_index = KPageHeap::GetAlignedBlockIndex(num_pages, Common::GuestHostAlignment);
s32 heap_index = KPageHeap::GetBlockIndex(num_pages);
R_UNLESS(0 <= heap_index, ResultOutOfMemory); R_UNLESS(0 <= heap_index, ResultOutOfMemory);
s32 min_index = 0; s32 min_index = 0;

Loading…
Cancel
Save