(InputCryptoStream): new class derived from CryptoStream.

properly dispose transformations used by CryptoStream.
This commit is contained in:
morkt
2016-12-25 06:51:33 +04:00
parent a303a66501
commit b6f472ab25
14 changed files with 42 additions and 18 deletions

View File

@@ -193,7 +193,7 @@ namespace GameRes.Formats.CaramelBox
return input;
if (a3ent.IsEncrypted)
{
input = new CryptoStream (input, new NotTransform(), CryptoStreamMode.Read);
input = new InputCryptoStream (input, new NotTransform());
}
if (!a3ent.IsPacked)
return input;