Fix #101 - thanks to aeonios for pointing that out

Begin with #97
This commit is contained in:
Tino Reichardt
2019-12-02 00:45:27 +01:00
parent a95e994767
commit c2277a3957
6 changed files with 97 additions and 99 deletions

View File

@@ -229,22 +229,34 @@ HRESULT CompressFiles(
index = FindRegistryFormatAlways(arcType);
if (index >= 0)
{
char temp[32];
char temp[256];
const NCompression::CFormatOptions &fo = m_RegistryInfo.Formats[index];
if (!fo.Method.IsEmpty())
{
params += " -m0=";
params += fo.Method;
}
if (fo.Level)
{
params += " -mx=";
ConvertUInt64ToString(fo.Level, temp);
params += temp;
}
if (fo.NumThreads)
{
params += " -mmt=";
ConvertUInt64ToString(fo.NumThreads, temp);
params += temp;
}
if (!fo.Options.IsEmpty())
{
params += " -m";
params += fo.Options;
}
}
}
// for testing current params, /TR 2017-05-18