fixed packed file size in created archives.

This commit is contained in:
morkt 2014-08-18 03:17:03 +04:00
parent 5688546a85
commit 881a95c165

View File

@ -474,6 +474,7 @@ NextEntry:
xp3entry.Hash = CheckedCopy (file, zstream); xp3entry.Hash = CheckedCopy (file, zstream);
zstream.Flush(); zstream.Flush();
segment.PackedSize = (uint)zstream.TotalOut; segment.PackedSize = (uint)zstream.TotalOut;
xp3entry.Size = segment.PackedSize;
} }
} }
else else
@ -538,6 +539,7 @@ NextEntry:
{ {
output.Flush(); output.Flush();
segment.PackedSize = (uint)(output as ZLibStream).TotalOut; segment.PackedSize = (uint)(output as ZLibStream).TotalOut;
xp3entry.Size = segment.PackedSize;
} }
} }
finally finally