mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-16 12:11:47 -06:00
4.35 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
0f60a4933b
commit
191cf6781a
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user