(ImpDecoder.GetImageData): don't dispose input.

This commit is contained in:
morkt 2017-02-23 17:52:27 +04:00
parent 16c0daf643
commit 10ff1cfcf9

View File

@ -134,7 +134,7 @@ namespace GameRes.Formats.BlackRainbow
{
m_input.Position = 0x10;
var pixels = new byte[Info.Width * Info.Height * 4];
using (var lzs = new ByteStringEncryptedStream (m_input.AsStream, m_key))
using (var lzs = new ByteStringEncryptedStream (m_input.AsStream, m_key, true))
using (var input = new LzssStream (lzs))
{
if (pixels.Length != input.Read (pixels, 0, pixels.Length))