Skip to content

Commit

Permalink
Fixing incorrect locking in m7z when failed to read a file during zip…
Browse files Browse the repository at this point in the history
… update
  • Loading branch information
mplpl committed Jun 27, 2021
1 parent f9ae769 commit 80d7dd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib7z/p7zip/p7zip_src/CPP/7zip/Archive/Zip/ZipUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,9 @@ static HRESULT Update2(
{
complexity += ui.Size;
complexity += kLocalHeaderSize;
mtProgressMixerSpec->Mixer2->CriticalSection.Leave();
mtProgressMixerSpec->Mixer2->SetProgressOffset(complexity);
mtProgressMixerSpec->Mixer2->CriticalSection.Enter();
RINOK(updateCallback->SetOperationResult(NArchive::NUpdate::NOperationResult::kOK));
refs.Refs[mtItemIndex - 1].Skip = true;
continue;
Expand Down

0 comments on commit 80d7dd8

Please sign in to comment.