Skip to content

Commit

Permalink
Common: Missed MAP_FIXED -> MAP_FIXED_NOREPLACE
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek authored May 21, 2024
1 parent d765f2e commit 92b707d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/Linux/LnxHostSys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void* HostSys::Mmap(void* base, size_t size, const PageProtectionMode& mode)

u32 flags = MAP_PRIVATE | MAP_ANONYMOUS;
if (base)
flags |= MAP_FIXED;
flags |= MAP_FIXED_NOREPLACE;

#if defined(__APPLE__) && defined(_M_ARM64)
if (mode.CanExecute())
Expand Down

0 comments on commit 92b707d

Please sign in to comment.