Translate FilePath before getting it from module_load_count

This commit is contained in:
ahm3dgg
2026-01-09 06:00:18 +02:00
parent 9161d04417
commit 974defb080

View File

@@ -285,7 +285,8 @@ namespace syscalls
return STATUS_IMAGE_MACHINE_TYPE_MISMATCH;
}
if (c.win_emu.mod_manager.get_module_load_count_by_path(section_entry->file_name) > 1)
auto local_file = c.win_emu.file_sys.translate(section_entry->file_name);
if (c.win_emu.mod_manager.get_module_load_count_by_path(local_file) > 1)
{
return STATUS_IMAGE_NOT_AT_BASE;
}