mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 22:55:04 -06:00
Minor fix in shm::map_critical
This commit is contained in:
parent
4ade06f36f
commit
219e3d61f8
@ -831,7 +831,7 @@ namespace utils
|
|||||||
DWORD old;
|
DWORD old;
|
||||||
if (!::VirtualProtect(target, m_size, +prot, &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"};
|
return {nullptr, "Failed to protect"};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user