diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-09-04 10:18:16 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-09-04 10:18:16 +0200 |
| commit | 72986e8ba350ced2d86904c704a2d8c756c3d14b (patch) | |
| tree | 68f89e1a0110b5cf4f33366379ca6a61484d1599 /src | |
| parent | 3df01a153df0ee370fb48711e286b517cfad0d20 (diff) | |
| download | box64-72986e8ba350ced2d86904c704a2d8c756c3d14b.tar.gz box64-72986e8ba350ced2d86904c704a2d8c756c3d14b.zip | |
Don't limit mmap on 47bits if wine is not detected
Diffstat (limited to 'src')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 1c08dc03..fdd2ca89 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2034,7 +2034,7 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, unsigned long length, int prot addr = findBlockNearHint(addr, length); // is this the best way? ret = mmap64(addr, length, prot, flags, fd, offset); printf_log(LOG_INFO, " tried again with %p, got %p\n", addr, ret); - } else if((ret!=(void*)-1) && (old_addr==NULL) && ((uintptr_t)ret>0x7fffffffffffLL)) { + } else if((ret!=(void*)-1) && (old_addr==NULL) && (box64_wine) && ((uintptr_t)ret>0x7fffffffffffLL)) { printf_log(LOG_INFO, "Warning, mmap on 47bits didn't worked, ask %p, got %p ", addr, ret); munmap(ret, length); loadProtectionFromMap(); // reload map, because something went wrong previously |