Browse Source

NTDirectoryFileSystem: Bugfix: buffer size was reduced before subsequent calls to NtQueryDirectoryFile

Tal Aloni 5 years ago
parent
commit
39d74939e0
1 changed files with 0 additions and 1 deletions
  1. 0 1
      SMBLibrary.Win32/NTFileStore/NTDirectoryFileSystem.cs

+ 0 - 1
SMBLibrary.Win32/NTFileStore/NTDirectoryFileSystem.cs

@@ -274,7 +274,6 @@ namespace SMBLibrary.Win32
                     return status;
                 }
                 int numberOfBytesWritten = (int)ioStatusBlock.Information;
-                buffer = ByteReader.ReadBytes(buffer, 0, numberOfBytesWritten);
                 List<QueryDirectoryFileInformation> page = QueryDirectoryFileInformation.ReadFileInformationList(buffer, 0, informationClass);
                 result.AddRange(page);
                 restartScan = false;