From 24b4ef878008ce9ea00bf8e43d09d5f3ee7ae30b Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 28 Jan 2026 11:48:11 +0000 Subject: [PATCH] fix test --- src/SharpCompress/Factories/ZipFactory.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/SharpCompress/Factories/ZipFactory.cs b/src/SharpCompress/Factories/ZipFactory.cs index e808cb68..c6c4915d 100644 --- a/src/SharpCompress/Factories/ZipFactory.cs +++ b/src/SharpCompress/Factories/ZipFactory.cs @@ -109,7 +109,14 @@ public class ZipFactory stream.Position = startPosition; //test the zip (last) file of a multipart zip - return await ZipArchive.IsZipMultiAsync(stream, password, cancellationToken); + if (await ZipArchive.IsZipMultiAsync(stream, password, cancellationToken)) + { + return true; + } + + stream.Position = startPosition; + + return false; } ///