From f12766f027ed5fad6bc976cb829c5e8b46b6aa25 Mon Sep 17 00:00:00 2001 From: ahm3dgg Date: Wed, 7 Jan 2026 20:34:33 +0200 Subject: [PATCH] use local path for fs ops --- src/windows-emulator/process_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows-emulator/process_context.cpp b/src/windows-emulator/process_context.cpp index e04bcd70..8909eebf 100644 --- a/src/windows-emulator/process_context.cpp +++ b/src/windows-emulator/process_context.cpp @@ -291,7 +291,7 @@ namespace { section s; s.file_name = (system_root_path / known_dll_name).u16string(); - s.maximum_size = page_align_up(std::filesystem::file_size(s.file_name)); + s.maximum_size = page_align_up(std::filesystem::file_size(local_system_root_path / known_dll_name)); s.allocation_attributes = SEC_IMAGE; s.section_page_protection = PAGE_EXECUTE; s.cache_image_info_from_filedata(file); @@ -355,7 +355,7 @@ namespace section s; s.file_name = (system_root_path / known_dll_dep_name_16).u16string(); - s.maximum_size = page_align_up(std::filesystem::file_size(s.file_name)); + s.maximum_size = page_align_up(std::filesystem::file_size(known_dll_dep_path)); s.allocation_attributes = SEC_IMAGE; s.section_page_protection = PAGE_EXECUTE; s.cache_image_info_from_filedata(known_dll_dep_file);