From 4b12c72ece2905fd6b1682184931f2bda2c6092f Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 26 Dec 2013 17:11:28 -0600 Subject: [PATCH] wimexport: Only keep chunk size if compression type unchanged --- programs/imagex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/imagex.c b/programs/imagex.c index 33274616..fd634419 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -2547,7 +2547,9 @@ imagex_export(int argc, tchar **argv, int cmd) if (ret) goto out_free_src_wim; - wimlib_set_output_chunk_size(dest_wim, src_info.chunk_size); + /* Use same chunk size if compression type is the same. */ + if (compression_type == src_info.compression_type) + wimlib_set_output_chunk_size(dest_wim, src_info.chunk_size); } image = wimlib_resolve_image(src_wim, src_image_num_or_name); -- 2.43.0