From db7548d1301534485f5cd38211729d1b33d73d8d Mon Sep 17 00:00:00 2001 From: Maurice Kayser <35454376+MauriceKayser@users.noreply.github.com> Date: Sun, 21 Dec 2025 00:00:00 +0000 Subject: [PATCH] Translate paths before usage in section.cpp --- src/windows-emulator/syscalls/section.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows-emulator/syscalls/section.cpp b/src/windows-emulator/syscalls/section.cpp index b774fc62..6d012794 100644 --- a/src/windows-emulator/syscalls/section.cpp +++ b/src/windows-emulator/syscalls/section.cpp @@ -138,7 +138,7 @@ namespace syscalls if ((allocation_attributes & SEC_IMAGE) && !s.file_name.empty()) { std::vector file_data; - if (utils::io::read_file(s.file_name, &file_data)) + if (utils::io::read_file(c.win_emu.file_sys.translate(s.file_name), &file_data)) { section::image_info info{}; @@ -355,7 +355,7 @@ namespace syscalls if (!section_entry->file_name.empty()) { - if (!utils::io::read_file(section_entry->file_name, &file_data)) + if (!utils::io::read_file(c.win_emu.file_sys.translate(section_entry->file_name), &file_data)) { return STATUS_INVALID_PARAMETER; }