]> wimlib.net Git - wimlib/blobdiff - src/export_image.c
Add support for extract list files
[wimlib] / src / export_image.c
index 81c66594227c77c4f0cb2a64eeb6153b9c9354fe..87ecefa7046a011552df415126e6c46b331801a3 100644 (file)
@@ -52,12 +52,12 @@ inode_export_streams(struct wim_inode *inode,
 
                /* Search for the stream (via SHA1 message digest) in the
                 * destination WIM.  */
-               dest_lte = __lookup_resource(dest_lookup_table, hash);
+               dest_lte = lookup_resource(dest_lookup_table, hash);
                if (!dest_lte) {
                        /* Stream not yet present in destination WIM.  Search
                         * for it in the source WIM, then export it into the
                         * destination WIM.  */
-                       src_lte = __lookup_resource(src_lookup_table, hash);
+                       src_lte = lookup_resource(src_lookup_table, hash);
                        if (!src_lte)
                                return resource_not_found_error(inode, hash);
 
@@ -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.  */