mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-29 23:41:19 -06:00
address_space: Fix order of operations (#4288)
This commit is contained in:
parent
3400bdf4b1
commit
90b75eadec
@ -717,7 +717,7 @@ struct AddressSpace::Impl {
|
||||
int fd = -1) {
|
||||
m_free_regions.subtract({virtual_addr, virtual_addr + size});
|
||||
#ifdef __APPLE__
|
||||
if (prot & PROT_EXEC != 0) {
|
||||
if ((prot & PROT_EXEC) != 0) {
|
||||
ASSERT_MSG(fd == -1, "Requested execute permissions for file mapping");
|
||||
phys_addr = -1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user