aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Win32/Memory.inc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-26 20:37:11 +0000
committerChris Lattner <sabre@nondot.org>2006-07-26 20:37:11 +0000
commitfab30f2aa08518ff7e38e5d993db9d2206551f24 (patch)
tree93f43d1f2c573cf890cf4a978a0a83cdfaca0ad1 /lib/System/Win32/Memory.inc
parent0f3961e4d0381c937838a0aff5de5325b59d336f (diff)
downloadexternal_llvm-fab30f2aa08518ff7e38e5d993db9d2206551f24.zip
external_llvm-fab30f2aa08518ff7e38e5d993db9d2206551f24.tar.gz
external_llvm-fab30f2aa08518ff7e38e5d993db9d2206551f24.tar.bz2
Fix the build on win32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Memory.inc')
-rw-r--r--lib/System/Win32/Memory.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/Win32/Memory.inc b/lib/System/Win32/Memory.inc
index 9f5693a..3b70cc8 100644
--- a/lib/System/Win32/Memory.inc
+++ b/lib/System/Win32/Memory.inc
@@ -47,9 +47,10 @@ MemoryBlock Memory::AllocateRWX(unsigned NumBytes,
}
bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
- if (M.Address == 0 || M.Size == 0) return;
+ 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 false;
}
}