Exverge
7 days ago
No known key found for this signature in database
GPG Key ID: DAD399BCC5FB77E4
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|