This commit is contained in:
Igor Pavlov
2010-11-18 00:00:00 +00:00
committed by Kornel Lesiński
parent b75af1bba6
commit de4f8c22fe
14 changed files with 224 additions and 26 deletions

View File

@@ -108,7 +108,7 @@ HRESULT CDecoder::CodeSpec(ISequentialInStream *inStream, ISequentialOutStream *
if (_outSizeDefined)
{
const UInt64 rem = _outSize - _outSizeProcessed;
if (rem < curSize)
if (rem <= curSize)
{
curSize = (SizeT)rem;
if (FinishStream)