File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ HRESULT CompressFiles(
217
217
params += kIncludeSwitch ;
218
218
RINOK (CreateMap (names, fileMapping, event, params))
219
219
220
- if (!arcType.IsEmpty () && arcType == L" 7z" )
220
+ if (!arcType.IsEmpty () && (( arcType == L" 7z" ) || (arcType == L" zip " )) )
221
221
{
222
222
int index ;
223
223
params += kArchiveTypeSwitch ;
@@ -231,7 +231,7 @@ HRESULT CompressFiles(
231
231
232
232
if (!fo.Method .IsEmpty ())
233
233
{
234
- params += " -m0=" ;
234
+ params += (arcType == L" 7z " ) ? " -m0= " : " -mm =" ;
235
235
params += fo.Method ;
236
236
}
237
237
@@ -242,23 +242,23 @@ HRESULT CompressFiles(
242
242
params += temp;
243
243
}
244
244
245
- if (fo.Dictionary )
245
+ if (fo.Dictionary && (arcType == L" 7z " ) )
246
246
{
247
247
params += " -md=" ;
248
248
ConvertUInt32ToString (fo.Dictionary , temp);
249
249
params += temp;
250
250
params += " b" ;
251
251
}
252
252
253
- if (fo.BlockLogSize )
253
+ if (fo.BlockLogSize && (arcType == L" 7z " ) )
254
254
{
255
255
params += " -ms=" ;
256
256
ConvertUInt64ToString (1ULL << fo.BlockLogSize , temp);
257
257
params += temp;
258
258
params += " b" ;
259
259
}
260
260
261
- if (fo.NumThreads )
261
+ if (fo.NumThreads && fo. NumThreads != - 1 )
262
262
{
263
263
params += " -mmt=" ;
264
264
ConvertUInt32ToString (fo.NumThreads , temp);
You can’t perform that action at this time.
0 commit comments