]> wimlib.net Git - wimlib/blobdiff - src/export_image.c
Replace WIMLIB_OPEN_FLAG_SPLIT_OK with WIMLIB_OPEN_FLAG_ERROR_IF_SPLIT
[wimlib] / src / export_image.c
index b769afc2e97179b3b2f3740096b4f4c8bde48bd1..87ecefa7046a011552df415126e6c46b331801a3 100644 (file)
@@ -115,7 +115,7 @@ wimlib_export_image(WIMStruct *src_wim,
        if (src_wim == NULL || dest_wim == NULL)
                return WIMLIB_ERR_INVALID_PARAM;
 
-       if (!wim_has_metadata(src_wim) || !wim_has_metadata(dest_wim))
+       if (!wim_has_metadata(dest_wim))
                return WIMLIB_ERR_METADATA_NOT_FOUND;
 
        /* Destination WIM must be writable.  */