mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 06:24:13 -06:00
Merge pull request #70 from vinnyrom/vinnyrom
Fix null dereference of 'progress' when updating an archive.
This commit is contained in:
@@ -127,7 +127,10 @@ HRESULT CDecoder::CodeSpec(ISequentialInStream * inStream,
|
|||||||
if (zOut.pos) {
|
if (zOut.pos) {
|
||||||
RINOK(WriteStream(outStream, _dstBuf, zOut.pos));
|
RINOK(WriteStream(outStream, _dstBuf, zOut.pos));
|
||||||
_processedOut += zOut.pos;
|
_processedOut += zOut.pos;
|
||||||
RINOK(progress->SetRatioInfo(&_processedIn, &_processedOut));
|
if (progress)
|
||||||
|
{
|
||||||
|
RINOK(progress->SetRatioInfo(&_processedIn, &_processedOut));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* finished with buffer */
|
/* finished with buffer */
|
||||||
|
|||||||
Reference in New Issue
Block a user