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