Added additional vmp compatibility

This commit is contained in:
thejanit0r
2026-01-04 09:33:54 +01:00
parent 0de53515ed
commit 29b8ec4072
4 changed files with 39 additions and 2 deletions

View File

@@ -31,6 +31,10 @@ inline std::optional<nt_memory_permission> try_map_nt_to_emulator_protection(uin
ext = memory_permission_ext::guard;
}
// Remove the highest nibble since we are not currently handling those memory protection constants
// https://github.com/winsiderss/phnt/blob/master/ntmmapi.h#L26
nt_protection &= ~0xF0000000;
memory_permission common = memory_permission::none;
switch (nt_protection)
{