Fix host_mmap

This commit is contained in:
DHrpcs3 2024-09-24 23:11:48 +03:00 committed by GitHub
parent 0634f87168
commit 32cd68e746
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {