mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Fixed crash unzipping uncompressed files.
This commit is contained in:
@@ -732,7 +732,8 @@ bool lcZipFile::ExtractFile(int FileIndex, lcMemFile& File, quint32 MaxLength)
|
||||
}
|
||||
}
|
||||
|
||||
inflateEnd(&Stream);
|
||||
if (FileInfo.compression_method == Z_DEFLATED)
|
||||
inflateEnd(&Stream);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user