Minor fix in shm::map_critical

This commit is contained in:
Eladash
2022-07-09 09:31:00 +03:00
committed by Ivan
parent 4ade06f36f
commit 219e3d61f8
+1 -1
View File
@@ -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"};
}
}