Skip to content

Commit

Permalink
Merge pull request #46 from Levoila/fix-detect-compression-format
Browse files Browse the repository at this point in the history
Fix DetectCompressionFormat
  • Loading branch information
getnamo authored Mar 9, 2020
2 parents 600c0d0 + 0cf7118 commit 0cbebfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 7zpp/UsefulFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ namespace SevenZip
CComPtr< IInArchive > archive = UsefulFunctions::GetArchiveReader(library, archiveCompressionFormat);
if (!archive) continue;

fileStream->Seek({}, STREAM_SEEK_SET, nullptr); // Seek to beginning of file
CComPtr< InStreamWrapper > inFile = new InStreamWrapper(fileStream);
CComPtr< ArchiveOpenCallback > openCallback = new ArchiveOpenCallback(password);

Expand Down

0 comments on commit 0cbebfb

Please sign in to comment.