diff --git a/src/SharpCompress/Archives/ArchiveFactory.cs b/src/SharpCompress/Archives/ArchiveFactory.cs index 02c10699..b81e2c0e 100644 --- a/src/SharpCompress/Archives/ArchiveFactory.cs +++ b/src/SharpCompress/Archives/ArchiveFactory.cs @@ -189,9 +189,10 @@ public static bool IsArchive(Stream stream, out ArchiveType? type) foreach (var factory in Factory.Factories) { + var isArchive = factory.IsArchive(stream); stream.Position = startPosition; - if (factory.IsArchive(stream, null)) + if (isArchive) { type = factory.KnownArchiveType; return true;