Improve vm::unmap

Prevent unmapping predefined locations
This commit is contained in:
Nekotekina 2018-08-18 21:01:32 +03:00
parent 7cf82d2511
commit 182c04b59d

View file

@ -801,7 +801,7 @@ namespace vm
{
vm::writer_lock lock(0);
for (auto it = g_locations.begin(); it != g_locations.end(); it++)
for (auto it = g_locations.begin() + memory_location_max; it != g_locations.end(); it++)
{
if (*it && (*it)->addr == addr)
{