Skip to content

Commit

Permalink
fixes -mmt= option for many handlers (previously ignored by handler…
Browse files Browse the repository at this point in the history
…s used SetCoderProperties to set number of threads)
  • Loading branch information
sebres committed Aug 31, 2023
1 parent 8f52579 commit a884f29
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions CPP/7zip/Archive/Common/HandlerOut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ HRESULT CMultiMethodProps::SetProperty(const wchar_t *nameSpec, const PROPVARIAN

{
HRESULT hres;
if (SetCommonProperty(name, value, hres))
return hres;
SetCommonProperty(name, value, hres);
/* don't return here, since many handlers set common properties (e. g. kNumThreads)
with SetCoderProperties, so add it also as prop by its ID from name below */
}

UInt32 number;
Expand Down Expand Up @@ -258,11 +259,9 @@ HRESULT CSingleMethodProps::SetProperty(const wchar_t *name2, const PROPVARIANT
}
{
HRESULT hres;
if (SetCommonProperty(name, value, hres))
{
// processed = true;
return S_OK;
}
SetCommonProperty(name, value, hres);
/* don't return here, since many handlers set common properties (e. g. kNumThreads)
with SetCoderProperties, so add it also as prop by its ID from name below */
}
RINOK(ParseMethodFromPROPVARIANT(name, value));
return S_OK;
Expand Down

0 comments on commit a884f29

Please sign in to comment.