diff --git a/rpcs3/util/vm_native.cpp b/rpcs3/util/vm_native.cpp index ca06af72b0..0fc1d878e9 100644 --- a/rpcs3/util/vm_native.cpp +++ b/rpcs3/util/vm_native.cpp @@ -831,7 +831,7 @@ namespace utils DWORD old; if (!::VirtualProtect(target, m_size, +prot, &old)) { - UnmapViewOfFile2(nullptr, target, MEM_PRESERVE_PLACEHOLDER); + UnmapViewOfFile2(GetCurrentProcess(), target, MEM_PRESERVE_PLACEHOLDER); return {nullptr, "Failed to protect"}; } }