diff --git a/src/write.rs b/src/write.rs index 8e4cce8a..af06cae7 100644 --- a/src/write.rs +++ b/src/write.rs @@ -797,6 +797,8 @@ impl ZipWriter { ); let version_needed = file.version_needed(); file.version_made_by = file.version_made_by.max(version_needed as u8); + let version_needed = file.version_needed(); + file.version_made_by = file.version_made_by.max(version_needed as u8); let index = self.insert_file_data(file)?; let file = &mut self.files[index]; let writer = self.inner.get_plain();