summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MemArena.cpp
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-08-20 23:41:47 +0200
committerGitHub <noreply@github.com>2017-08-20 23:41:47 +0200
commitaab4cced1153db168504705aa9a70c7fd16dbc44 (patch)
tree8cd5425ae8bfd5e82cbea3a6dee35ee6e695ffcc /Source/Core/Common/MemArena.cpp
parent16d6ccbdf7bed6a1da122e0bcd0747d9bcbd650f (diff)
parent4e5fe6366a2041b09616a9a2e3b2ccb038a4d2f1 (diff)
Merge pull request #5938 from sepalani/err-msg
CommonFuncs: LastStrerrorString added
Diffstat (limited to 'Source/Core/Common/MemArena.cpp')
-rw-r--r--Source/Core/Common/MemArena.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/MemArena.cpp b/Source/Core/Common/MemArena.cpp
index cff92ce794..082670d2b3 100644
--- a/Source/Core/Common/MemArena.cpp
+++ b/Source/Core/Common/MemArena.cpp
@@ -136,7 +136,7 @@ u8* MemArena::FindMemoryBase()
u8* base = static_cast<u8*>(VirtualAlloc(nullptr, memory_size, MEM_RESERVE, PAGE_READWRITE));
if (!base)
{
- PanicAlert("Failed to map enough memory space: %s", GetLastErrorMsg().c_str());
+ PanicAlert("Failed to map enough memory space: %s", GetLastErrorString().c_str());
return nullptr;
}
VirtualFree(base, 0, MEM_RELEASE);
@@ -153,7 +153,7 @@ u8* MemArena::FindMemoryBase()
void* base = mmap(nullptr, memory_size, PROT_NONE, flags, -1, 0);
if (base == MAP_FAILED)
{
- PanicAlert("Failed to map enough memory space: %s", GetLastErrorMsg().c_str());
+ PanicAlert("Failed to map enough memory space: %s", LastStrerrorString().c_str());
return nullptr;
}
munmap(base, memory_size);