mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
Minor fix in shm::map_critical
This commit is contained in:
parent
4ade06f36f
commit
219e3d61f8
1 changed files with 1 additions and 1 deletions
|
@ -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"};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue