mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2024-11-24 10:49:18 +01:00
Fix compiling with latest wut version
This commit is contained in:
parent
8ae558e3ac
commit
d76afc5673
@ -591,8 +591,6 @@ void *MemoryMapping_allocEx(uint32_t size, int32_t align, bool videoOnly) {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" bool MEMCheckExpHeap(MEMHeapHandle heap, bool logProblems);
|
|
||||||
|
|
||||||
void MemoryMapping_checkHeaps() {
|
void MemoryMapping_checkHeaps() {
|
||||||
OSLockMutex(&allocMutex);
|
OSLockMutex(&allocMutex);
|
||||||
for (int32_t i = 0; /* waiting for a break */; i++) {
|
for (int32_t i = 0; /* waiting for a break */; i++) {
|
||||||
@ -600,7 +598,7 @@ void MemoryMapping_checkHeaps() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
auto heapHandle = (MEMHeapHandle) mem_mapping[i].effective_start_address;
|
auto heapHandle = (MEMHeapHandle) mem_mapping[i].effective_start_address;
|
||||||
if (!MEMCheckExpHeap(heapHandle, true)) {
|
if (!MEMCheckExpHeap(heapHandle, MEM_EXP_HEAP_CHECK_FLAGS_LOG_ERRORS)) {
|
||||||
DEBUG_FUNCTION_LINE_ERR("MemoryMapping heap %08X (index %d) is corrupted.", heapHandle, i);
|
DEBUG_FUNCTION_LINE_ERR("MemoryMapping heap %08X (index %d) is corrupted.", heapHandle, i);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
OSFatal("MemoryMappingModule: Heap is corrupted");
|
OSFatal("MemoryMappingModule: Heap is corrupted");
|
||||||
|
Loading…
Reference in New Issue
Block a user