Properly set StreamNameLength (with the length of extra data we append).
This fixes truncated output from FindFirstStreamW/FindNextStreamW

svn path=/trunk/; revision=68822
This commit is contained in:
Pierre Schweitzer 2015-08-25 20:11:53 +00:00
parent 51d24b7385
commit b72e356c87

View 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':';