Exclude win32u.dll from module_load_count

This commit is contained in:
ahm3dgg
2026-01-09 06:45:32 +02:00
parent 974defb080
commit f41e7bf881
3 changed files with 5 additions and 6 deletions

View File

@@ -285,8 +285,7 @@ namespace syscalls
return STATUS_IMAGE_MACHINE_TYPE_MISMATCH;
}
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)
if (c.win_emu.mod_manager.get_module_load_count_by_path(section_entry->file_name) > 1)
{
return STATUS_IMAGE_NOT_AT_BASE;
}