Fix various minor warnings.

This commit is contained in:
Unknown W. Brackets committed 2016-03-20 14:17:51 -07:00
1 parent 87eadad326
commit ef1dc583a2
9 files changed
+15 -10

No files matched your search

+4 -2
View File
@@ -215,8 +215,10 @@ u8* MemArena::Find4GBBase()
#ifdef _M_X64
#ifdef _WIN32
// 64 bit
u8* base = (u8*)VirtualAlloc(0, 0xE1000000, MEM_RESERVE, PAGE_READWRITE);
VirtualFree(base, 0, MEM_RELEASE);
u8 *base = (u8*)VirtualAlloc(0, 0xE1000000, MEM_RESERVE, PAGE_READWRITE);
if (base) {
VirtualFree(base, 0, MEM_RELEASE);
}
return base;
#else
// Very precarious - mmap cannot return an error when trying to map already used pages.