Check if the known dll path exists first

This commit is contained in:
ahm3dgg
2026-01-06 09:57:33 +02:00
parent 725c7e3e9c
commit 67e130a3b8
3 changed files with 15 additions and 9 deletions

View File

@@ -225,10 +225,8 @@ namespace syscalls
return STATUS_NOT_SUPPORTED;
}
bool is_known_dll = (attributes.RootDirectory == KNOWN_DLLS_DIRECTORY
|| attributes.RootDirectory == KNOWN_DLLS32_DIRECTORY
|| filename.starts_with(u"\\KnownDlls")
|| filename.starts_with(u"\\KnownDlls32"));
bool is_known_dll = (attributes.RootDirectory == KNOWN_DLLS_DIRECTORY || attributes.RootDirectory == KNOWN_DLLS32_DIRECTORY ||
filename.starts_with(u"\\KnownDlls") || filename.starts_with(u"\\KnownDlls32"));
if (!is_known_dll && attributes.RootDirectory != BASE_NAMED_OBJECTS_DIRECTORY)
{