X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Flookup_table.h;h=6deb86fc531f7a74842b6adf6c1ca4e3a03c6798;hb=6f7956a06fcf92a304fae93e393e8eaee34e92d5;hp=91684c4319ab3fcaaacfc945e9cca2916ac44516;hpb=6b48d458662451251f506fcf7e275b4250a31cd0;p=wimlib diff --git a/src/lookup_table.h b/src/lookup_table.h index 91684c43..6deb86fc 100644 --- a/src/lookup_table.h +++ b/src/lookup_table.h @@ -99,7 +99,10 @@ struct lookup_table_entry { * * output_resource_entry is the struct resource_entry for the position of the * file resource when written to the output file. */ - u32 out_refcnt; + union { + u32 out_refcnt; + bool refcnt_is_incremented; + }; struct resource_entry output_resource_entry; }; @@ -165,8 +168,8 @@ static inline void lookup_table_remove(struct lookup_table *table, static inline struct resource_entry* wim_metadata_resource_entry(WIMStruct *w) { - return &w->image_metadata[w->current_image - 1]. - lookup_table_entry->resource_entry; + return &w->image_metadata[ + w->current_image - 1].metadata_lte->resource_entry; } #endif