X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fexport_image.c;h=87ecefa7046a011552df415126e6c46b331801a3;hb=d9675dd5814394373d9871c6e9b7b35325b3d21d;hp=b769afc2e97179b3b2f3740096b4f4c8bde48bd1;hpb=465a630d28e93b09e55ca07b1a6cae8def3b42f5;p=wimlib diff --git a/src/export_image.c b/src/export_image.c index b769afc2..87ecefa7 100644 --- a/src/export_image.c +++ b/src/export_image.c @@ -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. */