src: dotnet: FileSystemBase: GetStreamInfo: bug fix

This commit is contained in:
Bill Zissimopoulos 2017-05-09 23:01:31 -07:00
parent bd7546559c
commit 1ee95be5d7

View File

@ -329,11 +329,10 @@ namespace Fsp
{ {
Object Context = null; Object Context = null;
String StreamName; String StreamName;
UInt64 StreamSize, StreamAllocationSize;
StreamInfo StreamInfo = default(StreamInfo); StreamInfo StreamInfo = default(StreamInfo);
BytesTransferred = default(UInt32); BytesTransferred = default(UInt32);
while (GetStreamEntry(FileNode, FileDesc, while (GetStreamEntry(FileNode, FileDesc, ref Context,
ref Context, out StreamName, out StreamSize, out StreamAllocationSize)) out StreamName, out StreamInfo.StreamSize, out StreamInfo.StreamAllocationSize))
{ {
StreamInfo.SetStreamNameBuf(StreamName); StreamInfo.SetStreamNameBuf(StreamName);
if (!Api.FspFileSystemAddStreamInfo(ref StreamInfo, Buffer, Length, if (!Api.FspFileSystemAddStreamInfo(ref StreamInfo, Buffer, Length,