mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[NTFS]
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:
parent
51d24b7385
commit
b72e356c87
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ NtfsGetSteamInformation(PNTFS_FCB Fcb,
|
||||||
}
|
}
|
||||||
|
|
||||||
CurrentInfo->NextEntryOffset = 0;
|
CurrentInfo->NextEntryOffset = 0;
|
||||||
CurrentInfo->StreamNameLength = Attribute->NameLength * sizeof(WCHAR);
|
CurrentInfo->StreamNameLength = (Attribute->NameLength + wcslen(L"::$DATA")) * sizeof(WCHAR);
|
||||||
CurrentInfo->StreamSize.QuadPart = AttributeDataLength(Attribute);
|
CurrentInfo->StreamSize.QuadPart = AttributeDataLength(Attribute);
|
||||||
CurrentInfo->StreamAllocationSize.QuadPart = AttributeAllocatedLength(Attribute);
|
CurrentInfo->StreamAllocationSize.QuadPart = AttributeAllocatedLength(Attribute);
|
||||||
CurrentInfo->StreamName[0] = L':';
|
CurrentInfo->StreamName[0] = L':';
|
||||||
|
|
Loading…
Reference in a new issue