Add additional path checks for NtOpenSection

This commit is contained in:
66hh
2025-12-27 16:57:46 +08:00
parent 98393c03d2
commit 55310c57ac

View File

@@ -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();