diff --git a/rpcs3/util/vm_native.cpp b/rpcs3/util/vm_native.cpp index 5b5c7746f1..2bd422b591 100644 --- a/rpcs3/util/vm_native.cpp +++ b/rpcs3/util/vm_native.cpp @@ -1001,6 +1001,16 @@ namespace utils if (!mapped) { mapped = this->map(nullptr, prot); + + if (!mapped) + { + if ((ptr = m_ptr)) + { + break; + } + + return nullptr; + } } // Install mapped memory