X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwrite.c;h=084edc62312ff75fe81dbbc9032ea8184e1e463f;hp=8554d1ab573fc23af05533c2f9f1cde750e0914e;hb=157d002da341c9109c5c065893ae82c6dbf5d4e8;hpb=49a63aa13cdeb4c1348697ccd92207a1a65ec7b0 diff --git a/src/write.c b/src/write.c index 8554d1ab..084edc62 100644 --- a/src/write.c +++ b/src/write.c @@ -475,7 +475,8 @@ write_wim_resource(struct wim_lookup_table_entry *lte, if (!(resource_flags & WIMLIB_READ_RESOURCE_FLAG_RAW)) { write_ctx.out_ctype = out_ctype; if (out_ctype == WIMLIB_COMPRESSION_TYPE_LZX) { - ret = wimlib_lzx_alloc_context(NULL, comp_ctx); + ret = wimlib_lzx_alloc_context(out_chunk_size, + NULL, comp_ctx); if (ret) goto out; } @@ -1584,7 +1585,8 @@ write_stream_list_parallel(struct list_head *stream_list, params[i].compressed_res_queue = &compressed_res_queue; params[i].out_ctype = out_ctype; if (out_ctype == WIMLIB_COMPRESSION_TYPE_LZX) { - ret = wimlib_lzx_alloc_context(NULL, ¶ms[i].comp_ctx); + ret = wimlib_lzx_alloc_context(out_chunk_size, + NULL, ¶ms[i].comp_ctx); if (ret) goto out_free_params; }