X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwrite.c;h=a852c199670c9a6265cc043be19a6908d98c9ecb;hb=5d3d469e410dc5f4a28814ad231336fc174cba56;hp=3fd1d045f0e5d7fbd582f33c5351cbd658521b78;hpb=1c1db3fbc159f6657d533b702ad0f2a4c26142e3;p=wimlib diff --git a/src/write.c b/src/write.c index 3fd1d045..a852c199 100644 --- a/src/write.c +++ b/src/write.c @@ -39,6 +39,7 @@ #include "wimlib/error.h" #include "wimlib/file_io.h" #include "wimlib/header.h" +#include "wimlib/inode.h" #include "wimlib/integrity.h" #include "wimlib/lookup_table.h" #include "wimlib/metadata.h" @@ -172,8 +173,8 @@ can_raw_copy(const struct wim_lookup_table_entry *lte, if (rspec->flags & WIM_RESHDR_FLAG_COMPRESSED) { /* Normal compressed resource: Must use same compression type * and chunk size. */ - return (rspec->wim->compression_type == out_ctype && - rspec->wim->chunk_size == out_chunk_size); + return (rspec->compression_type == out_ctype && + rspec->chunk_size == out_chunk_size); } /* XXX: For compatibility, we can't allow multiple packed resources per @@ -1842,7 +1843,7 @@ determine_stream_size_uniquity(struct list_head *stream_list, struct stream_size_table tab; struct wim_lookup_table_entry *lte; - ret = init_stream_size_table(&tab, lt->capacity); + ret = init_stream_size_table(&tab, 9001); if (ret) return ret;