diff options
Diffstat (limited to 'lib/System/Win32/Memory.inc')
-rw-r--r-- | lib/System/Win32/Memory.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Win32/Memory.inc b/lib/System/Win32/Memory.inc index 3b70cc8e4f..739d530f4c 100644 --- a/lib/System/Win32/Memory.inc +++ b/lib/System/Win32/Memory.inc @@ -36,7 +36,7 @@ MemoryBlock Memory::AllocateRWX(unsigned NumBytes, void *pa = VirtualAlloc(NULL, NumPages*pageSize, MEM_COMMIT, PAGE_EXECUTE_READWRITE); if (pa == NULL) { - GetError("Can't allocate RWX Memory: ", ErrMsg); + MakeErrMsg(ErrMsg, "Can't allocate RWX Memory: "); return MemoryBlock(); } @@ -49,7 +49,7 @@ MemoryBlock Memory::AllocateRWX(unsigned NumBytes, bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) { if (M.Address == 0 || M.Size == 0) return false; if (!VirtualFree(M.Address, 0, MEM_RELEASE)) - return GetError("Can't release RWX Memory: ", ErrMsg); + return MakeErrMsg(ErrMsg, "Can't release RWX Memory: "); return false; } |