+
+ for (src_image = start_src_image;
+ src_image <= end_src_image;
+ src_image++)
+ {
+ int dst_image = orig_dest_image_count + 1 +
+ (src_image - start_src_image);
+
+ if (export_flags & WIMLIB_EXPORT_FLAG_WIMBOOT)
+ wim_info_set_wimboot(dest_wim->wim_info, dst_image, true);
+
+ if ((export_flags & WIMLIB_EXPORT_FLAG_BOOT) &&
+ (!all_images || src_image == src_wim->hdr.boot_idx))
+ dest_wim->hdr.boot_idx = dst_image;
+ }
+
+ if (export_flags & WIMLIB_EXPORT_FLAG_GIFT) {
+ free_blob_table(src_wim->blob_table);
+ src_wim->blob_table = NULL;
+ }