Skip to content

Commit

Permalink
Fix host_mmap
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 authored Sep 24, 2024
1 parent 0634f87 commit 32cd68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcsx-os/io-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static orbis::ErrorCode host_mmap(orbis::File *file, void **address,

result = ::mmap(
result, size, prot & rx::vm::kMapProtCpuAll,
((prot & rx::vm::kMapFlagPrivate) != 0 ? MAP_PRIVATE : MAP_SHARED) |
((flags & rx::vm::kMapFlagPrivate) != 0 ? MAP_PRIVATE : MAP_SHARED) |
MAP_FIXED,
hostFile->hostFd, offset);
if (result == (void *)-1) {
Expand Down

0 comments on commit 32cd68e

Please sign in to comment.