Core: Fix case where a panic alert wouldn't be shown in MemoryUtil.cpp
This commit is contained in:
parent
2ff44b5a66
commit
be3428cf8e
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue