minidump loader: handle zero protection

This commit is contained in:
redthing1
2025-06-12 15:08:07 -07:00
parent f8b163f556
commit 01d2656189

View File

@@ -293,7 +293,15 @@ namespace
continue;
}
memory_permission perms = map_nt_to_emulator_protection(region.protect);
auto protect_value = region.protect;
if (protect_value == 0)
{
protect_value = PAGE_READONLY;
win_emu.log.warn(" Region 0x%" PRIx64 " has zero protection, using PAGE_READONLY\n",
region.base_address);
}
memory_permission perms = map_nt_to_emulator_protection(protect_value);
try
{