This commit is contained in:
Chris Hennick 2023-05-04 10:46:56 -07:00
parent f165de2269
commit bb025ef195
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -505,6 +505,9 @@ impl<W: Write + Seek> ZipWriter<W> {
.inner
.prepare_switch_to(CompressionMethod::Stored, None)?;
self.inner.switch_to(make_plain_writer)?;
self.inner
.get_plain()
.seek(SeekFrom::Start(last_file.header_start))?;
self.writing_to_file = false;
self.writing_raw = false;
Ok(())