mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-11 14:07:13 -06:00
resolve deprecated ZSTD_resetDStream with its equivalent ZSTD_DCtx_reset(_ctx, ZSTD_reset_session_only);
This commit is contained in:
@@ -81,7 +81,9 @@ HRESULT CDecoder::CodeSpec(ISequentialInStream * inStream,
|
|||||||
if (ZSTD_isError(result))
|
if (ZSTD_isError(result))
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
} else {
|
} else {
|
||||||
ZSTD_resetDStream(_ctx);
|
result = ZSTD_DCtx_reset(_ctx, ZSTD_reset_session_only);
|
||||||
|
if (ZSTD_isError(result))
|
||||||
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
zOut.dst = _dstBuf;
|
zOut.dst = _dstBuf;
|
||||||
@@ -136,7 +138,7 @@ HRESULT CDecoder::CodeSpec(ISequentialInStream * inStream,
|
|||||||
|
|
||||||
/* end of frame */
|
/* end of frame */
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
result = ZSTD_resetDStream(_ctx);
|
result = ZSTD_DCtx_reset(_ctx, ZSTD_reset_session_only);
|
||||||
if (ZSTD_isError(result))
|
if (ZSTD_isError(result))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user