Pārlūkot izejas kodu

NTFileSystemAdapter: When querying FileAlternateNameInformation return STATUS_OBJECT_NAME_NOT_FOUND

Tal Aloni 6 gadi atpakaļ
vecāks
revīzija
41474b87ac

+ 2 - 1
SMBLibrary/NTFileStore/Adapter/NTFileSystemAdapter.Query.cs

@@ -116,8 +116,9 @@ namespace SMBLibrary
                     }
                 case FileInformationClass.FileAlternateNameInformation:
                     {
+                        // If there is no alternate name Windows will return STATUS_OBJECT_NAME_NOT_FOUND
                         result = null;
-                        return NTStatus.STATUS_NOT_IMPLEMENTED;
+                        return NTStatus.STATUS_OBJECT_NAME_NOT_FOUND;
                     }
                 case FileInformationClass.FileStreamInformation:
                     {