wimlib_iterate_lookup_table(): Check wim_has_metadata() instead of part 1
authorEric Biggers <ebiggers3@gmail.com>
Tue, 13 May 2014 16:07:56 +0000 (11:07 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 13 May 2014 16:07:56 +0000 (11:07 -0500)
src/lookup_table.c

index 9c198d5..6f07865 100644 (file)
@@ -1428,7 +1428,7 @@ wimlib_iterate_lookup_table(WIMStruct *wim, int flags,
                .cb = cb,
                .user_ctx = user_ctx,
        };
-       if (wim->hdr.part_number == 1) {
+       if (wim_has_metadata(wim)) {
                int ret;
                for (int i = 0; i < wim->hdr.image_count; i++) {
                        ret = do_iterate_lte(wim->image_metadata[i]->metadata_lte,