mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-06 16:49:59 +01:00
Fix host_mmap
This commit is contained in:
parent
0634f87168
commit
32cd68e746
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue