]> wimlib.net Git - wimlib/blobdiff - src/export_image.c
lzx-decompress.c: Inline and optimize lzx_decode_match()
[wimlib] / src / export_image.c
index 8304ea01a8fda9af7cc622456679899e148a8fd4..34b92422c1aabafb25e156034c6c784df2f6c0c3 100644 (file)
@@ -110,8 +110,7 @@ wimlib_export_image(WIMStruct *src_wim,
                    WIMStruct *dest_wim,
                    const tchar *dest_name,
                    const tchar *dest_description,
-                   int export_flags,
-                   wimlib_progress_func_t progress_func)
+                   int export_flags)
 {
        int ret;
        int start_image;
@@ -124,7 +123,8 @@ wimlib_export_image(WIMStruct *src_wim,
        if (export_flags & ~(WIMLIB_EXPORT_FLAG_BOOT |
                             WIMLIB_EXPORT_FLAG_NO_NAMES |
                             WIMLIB_EXPORT_FLAG_NO_DESCRIPTIONS |
-                            WIMLIB_EXPORT_FLAG_GIFT))
+                            WIMLIB_EXPORT_FLAG_GIFT |
+                            WIMLIB_EXPORT_FLAG_WIMBOOT))
                return WIMLIB_ERR_INVALID_PARAM;
 
        if (src_wim == NULL || dest_wim == NULL)
@@ -263,6 +263,13 @@ wimlib_export_image(WIMStruct *src_wim,
                        dest_wim->hdr.boot_idx = dest_wim->hdr.image_count;
                }
 
+               /* Possibly set WIMBoot flag  */
+               if (export_flags & WIMLIB_EXPORT_FLAG_WIMBOOT) {
+                       wim_info_set_wimboot(dest_wim->wim_info,
+                                            dest_wim->hdr.image_count,
+                                            true);
+               }
+
        }
        /* Set the reparse point fixup flag on the destination WIM if the flag
         * is set on the source WIM. */