[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Tue, 25 Aug 2015 20:11:53 +0000 (20:11 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 25 Aug 2015 20:11:53 +0000 (20:11 +0000)
Properly set StreamNameLength (with the length of extra data we append).
This fixes truncated output from FindFirstStreamW/FindNextStreamW

svn path=/trunk/; revision=68822

reactos/drivers/filesystems/ntfs/finfo.c

index 5c39644..9b1ad8c 100644 (file)
@@ -265,7 +265,7 @@ NtfsGetSteamInformation(PNTFS_FCB Fcb,
             }
 
             CurrentInfo->NextEntryOffset = 0;
-            CurrentInfo->StreamNameLength = Attribute->NameLength * sizeof(WCHAR);
+            CurrentInfo->StreamNameLength = (Attribute->NameLength + wcslen(L"::$DATA")) * sizeof(WCHAR);
             CurrentInfo->StreamSize.QuadPart = AttributeDataLength(Attribute);
             CurrentInfo->StreamAllocationSize.QuadPart = AttributeAllocatedLength(Attribute);
             CurrentInfo->StreamName[0] = L':';