]> wimlib.net Git - wimlib/blobdiff - src/modify.c
Fix up calculation of image XML statistics
[wimlib] / src / modify.c
index b5342a2ffa9084b27e729cf1e533f1c2256474ff..dc55d5fa8534ffc5ff0fcf0e7580e0511666bbd3 100644 (file)
@@ -44,7 +44,7 @@
  * the WIM image. */
 #define WIMLIB_ADD_IMAGE_FLAG_ROOT 0x80000000
 
-void destroy_image_metadata(struct image_metadata *imd,struct lookup_table *lt)
+void destroy_image_metadata(struct image_metadata *imd, struct lookup_table *lt)
 {
        free_dentry_tree(imd->root_dentry, lt);
        free_security_data(imd->security_data);
@@ -891,7 +891,7 @@ int do_add_image(WIMStruct *w, const char *dir, const char *name,
        if (flags & WIMLIB_ADD_IMAGE_FLAG_BOOT)
                wimlib_set_boot_idx(w, w->hdr.image_count);
 
-       ret = xml_add_image(w, root_dentry, name);
+       ret = xml_add_image(w, name);
        if (ret != 0)
                goto out_destroy_imd;