mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 15:14:59 -06:00
Fix -mmt= option for many handlers
The option is previously ignored by handlers used SetCoderProperties to set number of threads. Signed-off-by: Sergey G. Brester <serg.brester@sebres.de>
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user