Fix #24, which happens on first time calls via Explorer menu :/

This commit is contained in:
Tino Reichardt
2017-07-15 18:52:16 +02:00
parent 5464703640
commit b786c47d61
3 changed files with 14 additions and 11 deletions

View File

@@ -228,14 +228,17 @@ HRESULT CompressFiles(
{
char temp[32];
const NCompression::CFormatOptions &fo = m_RegistryInfo.Formats[index];
params += " -m0=";
params += fo.Method;
params += " -mx";
ConvertUInt64ToString(fo.Level, temp);
params += temp;
if (fo.NumThreads)
if (!fo.Method.IsEmpty())
{
params += " -mmt";
params += " -m0=";
params += fo.Method;
params += " -mx=";
ConvertUInt64ToString(fo.Level, temp);
params += temp;
params += " -mmt=";
ConvertUInt64ToString(fo.NumThreads, temp);
params += temp;
}