mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(BMZ): pass seekable stream to base.Read method.
This commit is contained in:
parent
5a858cf42d
commit
105a2ab968
@ -67,7 +67,8 @@ namespace GameRes.Formats.BlackRainbow
|
|||||||
{
|
{
|
||||||
stream.Seek (8, SeekOrigin.Current);
|
stream.Seek (8, SeekOrigin.Current);
|
||||||
using (var zstream = new ZLibStream (stream, CompressionMode.Decompress, true))
|
using (var zstream = new ZLibStream (stream, CompressionMode.Decompress, true))
|
||||||
return base.Read (zstream, info);
|
using (var input = new SeekableStream (zstream))
|
||||||
|
return base.Read (input, info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user