浏览代码

NTFileSystemAdapter: When querying FileAlternateNameInformation return STATUS_OBJECT_NAME_NOT_FOUND

Tal Aloni 6 年之前
父节点
当前提交
41474b87ac
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      SMBLibrary/NTFileStore/Adapter/NTFileSystemAdapter.Query.cs

+ 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:
                     {