mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 17:32:36 +00:00
Fix the build on win32
llvm-svn: 29302
This commit is contained in:
parent
34ff5a1684
commit
2cd0f41681
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user