From 0a71183894b9421a354fe5757118e719e0c93a0d Mon Sep 17 00:00:00 2001 From: Airat Salikhov Date: Mon, 29 Jul 2013 13:40:22 +0400 Subject: [PATCH] fix #1 ZipFile.AddFile fails depending of the file size Fix provided by bob0043 in comments to original issue http://dotnetzip.codeplex.com/workitem/14087 --- Zlib/ParallelDeflateOutputStream.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zlib/ParallelDeflateOutputStream.cs b/Zlib/ParallelDeflateOutputStream.cs index 8373983..89b1794 100644 --- a/Zlib/ParallelDeflateOutputStream.cs +++ b/Zlib/ParallelDeflateOutputStream.cs @@ -968,7 +968,7 @@ private void EmitPendingBuffers(bool doAll, bool mustWait) } while (nextToWrite >= 0); - } while (doAll && (_lastWritten != _latestCompressed)); + } while (doAll && (_lastWritten != _latestCompressed || _lastWritten != _lastFilled)); emitting = false; }