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

Commit

Permalink
Merge pull request #196 from fgimian/fix-extraction-of-sfx-archives
Browse files Browse the repository at this point in the history
Use a wider check position so SFX archives are correctly detected.
  • Loading branch information
squid-box committed Jul 2, 2023
2 parents 7653d24 + 17bc278 commit 2f30a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SevenZip/SevenZipExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ private IInStream GetArchiveStream(bool dispose)
/// <returns>OperationResult.Ok if Open() succeeds.</returns>
private OperationResult OpenArchiveInner(IInStream archiveStream, IArchiveOpenCallback openCallback)
{
ulong checkPos = 1 << 15;
ulong checkPos = 1 << 23;
var res = _archive.Open(archiveStream, ref checkPos, openCallback);

return (OperationResult)res;
Expand Down

0 comments on commit 2f30a07

Please sign in to comment.