diff --git a/src/xenia/memory.cc b/src/xenia/memory.cc index 9506f7def..d4dcec1e4 100644 --- a/src/xenia/memory.cc +++ b/src/xenia/memory.cc @@ -586,7 +586,8 @@ bool BaseHeap::Restore(ByteStream* stream) { } memory::PageAccess page_access = memory::PageAccess::kNoAccess; - if (page.current_protect == (kMemoryProtectRead | kMemoryProtectWrite)) { + if ((page.current_protect & kMemoryProtectRead) && + (page.current_protect & kMemoryProtectWrite)) { page_access = memory::PageAccess::kReadWrite; } else if (page.current_protect & kMemoryProtectRead) { page_access = memory::PageAccess::kReadOnly;