mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 03:14:59 -06:00
Fix #24, which happens on first time calls via Explorer menu :/
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user