Author: pschweitzer Date: Tue Aug 25 20:11:53 2015 New Revision: 68822
URL: http://svn.reactos.org/svn/reactos?rev=68822&view=rev Log: [NTFS] Properly set StreamNameLength (with the length of extra data we append). This fixes truncated output from FindFirstStreamW/FindNextStreamW
Modified: trunk/reactos/drivers/filesystems/ntfs/finfo.c
Modified: trunk/reactos/drivers/filesystems/ntfs/finfo.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/fi... ============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/finfo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/finfo.c [iso-8859-1] Tue Aug 25 20:11:53 2015 @@ -265,7 +265,7 @@ }
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':';