From a728db63de9e21896adc522a8402c67b9343d15b Mon Sep 17 00:00:00 2001 From: ahm3dgg Date: Fri, 9 Jan 2026 03:28:35 +0200 Subject: [PATCH] Workaround win32u only --- src/windows-emulator/syscalls.cpp | 4 ++-- src/windows-emulator/syscalls/section.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index 9b29022a..65560235 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -363,8 +363,8 @@ namespace syscalls emulator_object return_length); NTSTATUS handle_NtQuerySecurityAttributesToken(); NTSTATUS handle_NtAdjustPrivilegesToken(); - NTSTATUS handle_NtFlushInstructionCache(const syscall_context& c, const handle process_handle, - const emulator_object base_address, const uint64_t region_size); + NTSTATUS handle_NtFlushInstructionCache(const syscall_context& c, handle process_handle, const emulator_object base_address, + uint64_t region_size); NTSTATUS handle_NtQueryPerformanceCounter(const syscall_context& c, const emulator_object performance_counter, const emulator_object performance_frequency) diff --git a/src/windows-emulator/syscalls/section.cpp b/src/windows-emulator/syscalls/section.cpp index 62daac17..389b7815 100644 --- a/src/windows-emulator/syscalls/section.cpp +++ b/src/windows-emulator/syscalls/section.cpp @@ -119,7 +119,7 @@ namespace syscalls } utils::string::to_lower_inplace(filename); - if (is_known_dll && (filename.starts_with(u"win32u.dll") || filename.starts_with(u"ntdll.dll"))) + if (is_known_dll && (filename.starts_with(u"win32u.dll")) { return STATUS_OBJECT_NAME_NOT_FOUND; }