diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index abb4cd26..3c820289 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -3015,6 +3015,8 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, size_t length, int prot, int f setProtection_mmap((uintptr_t)ret, length, prot); else setProtection((uintptr_t)ret, length, prot); + if(old_addr && ret!=old_addr) + errno = EEXIST; } return ret; } |