From b72e356c87e07c4c1934e99fbbcb354674a53f6f Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Tue, 25 Aug 2015 20:11:53 +0000 Subject: [PATCH] [NTFS] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/filesystems/ntfs/finfo.c b/reactos/drivers/filesystems/ntfs/finfo.c index 5c39644bfce..9b1ad8c628f 100644 --- a/reactos/drivers/filesystems/ntfs/finfo.c +++ b/reactos/drivers/filesystems/ntfs/finfo.c @@ -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':';