From 55310c57ac24c37ec1007313806536bc4908f560 Mon Sep 17 00:00:00 2001 From: 66hh <49398720+66hh@users.noreply.github.com> Date: Sat, 27 Dec 2025 16:57:46 +0800 Subject: [PATCH] Add additional path checks for NtOpenSection --- src/windows-emulator/syscalls/section.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows-emulator/syscalls/section.cpp b/src/windows-emulator/syscalls/section.cpp index d54d3298..327f937f 100644 --- a/src/windows-emulator/syscalls/section.cpp +++ b/src/windows-emulator/syscalls/section.cpp @@ -223,7 +223,7 @@ namespace syscalls } if (attributes.RootDirectory != KNOWN_DLLS_DIRECTORY && attributes.RootDirectory != KNOWN_DLLS32_DIRECTORY && - attributes.RootDirectory != BASE_NAMED_OBJECTS_DIRECTORY) + attributes.RootDirectory != BASE_NAMED_OBJECTS_DIRECTORY && !filename.starts_with(u"\\KnownDlls")) { c.win_emu.log.error("Unsupported section\n"); c.emu.stop();