mirror of
https://github.com/Ed94/metadesk.git
synced 2026-10-14 04:49:42 -07:00
fix discrepancy in win32 vs. linux memory reserve
This commit is contained in:
1 parent
95ea556f34
commit
23289461d2
1 file changed
+4
@@ -387,6 +387,10 @@ static void*
|
||||
MD_LINUX_Reserve(MD_u64 size)
|
||||
{
|
||||
void *result = mmap(0, size, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, (off_t)0);
|
||||
if(result == (void *)-1)
|
||||
{
|
||||
result = 0;
|
||||
}
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user