+ if (!src_wim || !dest_wim)
+ return WIMLIB_ERR_INVALID_PARAM;
+
+ if (src_wim->hdr.total_parts != 1 || src_wim->hdr.total_parts != 1) {
+ ERROR("Exporting an image to or from a split WIM is "
+ "unsupported");
+ return WIMLIB_ERR_SPLIT_UNSUPPORTED;
+ }
+