Core: Fix case where a panic alert wouldn't be shown in MemoryUtil.cpp

This commit is contained in:
Lioncash 2014-08-10 04:50:58 -04:00
parent 2ff44b5a66
commit be3428cf8e
1 changed files with 3 additions and 3 deletions

View File

@ -91,10 +91,10 @@ void* AllocateMemoryPages(size_t size)
#else
void* ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE,
MAP_ANON | MAP_PRIVATE, -1, 0);
#endif
// printf("Mapped memory at %p (size %ld)\n", ptr,
// (unsigned long)size);
if (ptr == MAP_FAILED)
ptr = nullptr;
#endif
if (ptr == nullptr)
PanicAlert("Failed to allocate raw memory");