- if (le32_to_cpu(disk_hdr.chunk_size) != WIM_CHUNK_SIZE &&
- (hdr->flags & WIM_HDR_FLAG_COMPRESSION)) {
- ERROR("\"%"TS"\": Unexpected chunk size of %u! Ask the author to "
- "implement support for other chunk sizes.",
- filename, le32_to_cpu(disk_hdr.chunk_size));
- ERROR("(Or it might just be that the WIM header is invalid.)");
- return WIMLIB_ERR_INVALID_CHUNK_SIZE;
- }
-
- memcpy(hdr->guid, disk_hdr.guid, WIM_GID_LEN);
-
+ hdr->chunk_size = le32_to_cpu(disk_hdr.chunk_size);
+ memcpy(hdr->guid, disk_hdr.guid, WIM_GUID_LEN);