Common: Missed MAP_FIXED -> MAP_FIXED_NOREPLACE

This commit is contained in:
Connor McLaughlin 2024-05-22 00:05:24 +10:00 committed by GitHub
parent d765f2e15c
commit 92b707db99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ void* HostSys::Mmap(void* base, size_t size, const PageProtectionMode& mode)
u32 flags = MAP_PRIVATE | MAP_ANONYMOUS; u32 flags = MAP_PRIVATE | MAP_ANONYMOUS;
if (base) if (base)
flags |= MAP_FIXED; flags |= MAP_FIXED_NOREPLACE;
#if defined(__APPLE__) && defined(_M_ARM64) #if defined(__APPLE__) && defined(_M_ARM64)
if (mode.CanExecute()) if (mode.CanExecute())