Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fixed InvalidCastException when checking multi volume 7z archive
Browse files Browse the repository at this point in the history
  • Loading branch information
panda73111 committed Sep 20, 2021
1 parent 028053f commit 2210bdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SevenZip/SevenZipExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,8 @@ public bool Check()
finally
{
_archive?.Close();
((InStreamWrapper)_archiveStream).Dispose();
if (_archiveStream is IDisposable)
((IDisposable)_archiveStream).Dispose();
_archiveStream = null;
_opened = false;
}
Expand Down

0 comments on commit 2210bdf

Please sign in to comment.