X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwrite.c;h=7d6ee2df826e3b0ac1e3c80df1ea43bceddbaf54;hb=1c3c0358979da71761ac52736e8355c54c7a77f2;hp=98ee80d8fef81df7d3d629b2b02f14ee41278633;hpb=a6e50e8eb32035d44c94fd63bfae6c3de7481055;p=wimlib diff --git a/src/write.c b/src/write.c index 98ee80d8..7d6ee2df 100644 --- a/src/write.c +++ b/src/write.c @@ -2943,15 +2943,10 @@ can_overwrite_wim_inplace(const WIMStruct *wim, int write_flags) if (wim_is_pipable(wim) || (write_flags & WIMLIB_WRITE_FLAG_PIPABLE)) return false; - if (wim->hdr.wim_version != WIM_VERSION_PACKED_STREAMS) { - if (wim->compression_type != wim->out_compression_type) - return false; - if (wim->chunk_size != wim->out_chunk_size) - return false; - } else { - if (write_flags & WIMLIB_WRITE_FLAG_NO_PACK_STREAMS) - return false; - } + if (wim->compression_type != wim->out_compression_type) + return false; + if (wim->chunk_size != wim->out_chunk_size) + return false; return true; }