mirror of
https://github.com/ptitSeb/box64.git
synced 2025-10-14 02:38:54 +08:00
Fixed mmap tracking with MAP_NORESERVE flag on Android (#3044)
This commit is contained in:
@@ -3071,7 +3071,11 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, size_t length, int prot, int f
|
||||
}
|
||||
}
|
||||
// hack to capture full size of the mmap done by wine
|
||||
#if defined(ANDROID) || defined(WINLATOR_GLIBC)
|
||||
if(emu && (fd==-1) && (flags&(MAP_PRIVATE|MAP_ANON))==(MAP_PRIVATE|MAP_ANON) && !(flags&MAP_NORESERVE)) {
|
||||
#else
|
||||
if(emu && (fd==-1) && (flags&(MAP_PRIVATE|MAP_ANON))==(MAP_PRIVATE|MAP_ANON)) {
|
||||
#endif
|
||||
last_mmap_addr[last_mmap_idx] = ret;
|
||||
last_mmap_len[last_mmap_idx] = length;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user