- new_lte->refcnt = inode->i_nlink;
- new_lte->resource_location = RESOURCE_IN_STAGING_FILE;
- new_lte->staging_file_name = staging_file_name;
- new_lte->lte_inode = inode;
-
- struct wim_lookup_table_entry **my_ptr;
-
- if (stream_id == 0) {
- my_ptr = &inode->i_lte;
- } else {
- for (u16 i = 0; ; i++) {
- wimlib_assert(i < inode->i_num_ads);
- if (inode->i_ads_entries[i].stream_id == stream_id) {
- my_ptr = &inode->i_ads_entries[i].lte;
- break;
- }
- }
- }
-
- lookup_table_insert_unhashed(ctx->wim->lookup_table, new_lte, my_ptr);
+ new_lte->refcnt = inode->i_nlink;
+ new_lte->resource_location = RESOURCE_IN_STAGING_FILE;
+ new_lte->staging_file_name = staging_file_name;
+ new_lte->lte_inode = inode;
+ new_lte->resource_entry.original_size = size;
+
+ lookup_table_insert_unhashed(ctx->wim->lookup_table, new_lte,
+ inode, stream_id);