fixed bug

This commit is contained in:
Perfare 2016-10-15 20:02:15 +08:00
parent 4eebbaa5ef
commit cc3b08fea5

View File

@ -127,9 +127,10 @@ namespace Unity_Studio
byte[] blocksInfoBytes; byte[] blocksInfoBytes;
if ((flag & 0x80) != 0)//at end of file if ((flag & 0x80) != 0)//at end of file
{ {
var position = b_Stream.Position;
b_Stream.Position = b_Stream.BaseStream.Length - compressedSize; b_Stream.Position = b_Stream.BaseStream.Length - compressedSize;
blocksInfoBytes = b_Stream.ReadBytes(compressedSize); blocksInfoBytes = b_Stream.ReadBytes(compressedSize);
b_Stream.Position = 0x2E; b_Stream.Position = position;
} }
else else
{ {