X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fheader.c;h=0f9555195238e170aee895c640f96f9292b4cb80;hb=c94e4a479c2b77cc9046e7820c539f749fc15d6e;hp=90d40ded2b17f8284ec0d0ca638f42ab2231393c;hpb=e176e9731e696562bab8de7b9bd34c019deef3e8;p=wimlib diff --git a/src/header.c b/src/header.c index 90d40ded..0f955519 100644 --- a/src/header.c +++ b/src/header.c @@ -257,7 +257,11 @@ init_wim_header(struct wim_header *hdr, int ctype, u32 chunk_size) { memset(hdr, 0, sizeof(struct wim_header)); hdr->magic = WIM_MAGIC; - hdr->wim_version = WIM_VERSION_DEFAULT; + + if (ctype == WIMLIB_COMPRESSION_TYPE_LZMS) + hdr->wim_version = WIM_VERSION_PACKED_STREAMS; + else + hdr->wim_version = WIM_VERSION_DEFAULT; if (set_wim_hdr_cflags(ctype, hdr)) { ERROR("Invalid compression type specified (%d)", ctype); return WIMLIB_ERR_INVALID_COMPRESSION_TYPE;