diff options
Diffstat (limited to 'CPP/7zip/Compress/LzxDecoder.cpp')
-rwxr-xr-x | CPP/7zip/Compress/LzxDecoder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CPP/7zip/Compress/LzxDecoder.cpp b/CPP/7zip/Compress/LzxDecoder.cpp index d1027f1f..924229e9 100755 --- a/CPP/7zip/Compress/LzxDecoder.cpp +++ b/CPP/7zip/Compress/LzxDecoder.cpp @@ -360,6 +360,9 @@ STDMETHODIMP CDecoder::SetOutStreamSize(const UInt64 *outSize) { if (outSize == NULL) return E_FAIL; + // flush calls m_x86ConvertOutStreamSpec->flush, so we must init x86Convert. + if (!_keepHistory) + m_x86ConvertOutStreamSpec->Init(false, 0); _remainLen = kLenIdNeedInit; m_OutWindowStream.Init(_keepHistory); return S_OK; |