]> wimlib.net Git - wimlib/blobdiff - src/join.c
refcnt image metadata; calculate full path on-demand
[wimlib] / src / join.c
index e566ba2861a74aeb9f06b55009be14cad6fff5c8..0d0df2550925b4fc8e645ee3513fa6ca85787d41 100644 (file)
@@ -150,7 +150,7 @@ join_wims(WIMStruct **swms, unsigned num_swms,
        /* Copy the metadata resources from the first SWM part */
        joined_wim->hdr.image_count = swms[0]->hdr.image_count;
        for (i = 0; i < joined_wim->hdr.image_count; i++) {
-               ret = copy_resource(swms[0]->image_metadata[i].metadata_lte,
+               ret = copy_resource(swms[0]->image_metadata[i]->metadata_lte,
                                    joined_wim);
                if (ret)
                        return ret;