diff options
Diffstat (limited to 'CPP/7zip/Common/ProgressUtils.cpp')
-rwxr-xr-x | CPP/7zip/Common/ProgressUtils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CPP/7zip/Common/ProgressUtils.cpp b/CPP/7zip/Common/ProgressUtils.cpp index 22dc60d1..f24ff6b6 100755 --- a/CPP/7zip/Common/ProgressUtils.cpp +++ b/CPP/7zip/Common/ProgressUtils.cpp @@ -7,7 +7,7 @@ CLocalProgress::CLocalProgress() { ProgressOffset = InSize = OutSize = 0; - SendRatio = true; + SendRatio = SendProgress = true; } void CLocalProgress::Init(IProgress *progress, bool inSizeIsMain) @@ -31,7 +31,9 @@ STDMETHODIMP CLocalProgress::SetRatioInfo(const UInt64 *inSize, const UInt64 *ou } inSizeNew += ProgressOffset; outSizeNew += ProgressOffset; - return _progress->SetCompleted(_inSizeIsMain ? &inSizeNew : &outSizeNew); + if (SendProgress) + return _progress->SetCompleted(_inSizeIsMain ? &inSizeNew : &outSizeNew); + return S_OK; } HRESULT CLocalProgress::SetCur() |