4.35 beta

This commit is contained in:
Igor Pavlov
2006-03-03 00:00:00 +00:00
committed by Kornel Lesiński
parent 0f60a4933b
commit 191cf6781a
16 changed files with 156 additions and 53 deletions

View File

@@ -287,7 +287,10 @@ STDMETHODIMP CDecoder::CodeReal(ISequentialInStream *inStream,
}
else
return S_FALSE;
CopyBackBlockOp(distance, length);
m_RepDists[m_RepDistPtr++ & 3] = distance;
m_LastLength = length;
if (!m_OutWindowStream.CopyBlock(distance, length))
return S_FALSE;
pos += length;
}
}

View File

@@ -56,16 +56,6 @@ class CDecoder :
void InitStructures();
bool ReadTables();
bool ReadLastTables();
void CopyBackBlockOp(UInt32 aDistance, UInt32 aLength)
{
/*
if(m_Position <= aDistance)
throw CDecoderException(CDecoderException::kData);
*/
m_RepDists[m_RepDistPtr++ & 3] = aDistance;
m_LastLength = aLength;
m_OutWindowStream.CopyBlock(aDistance, aLength);
}
public:
CDecoder();