mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Translate FilePath before getting it from module_load_count
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user