diff --git a/src/SharpCompress/IO/RewindableStream.cs b/src/SharpCompress/IO/RewindableStream.cs index f5a8d11f3..c4b776590 100644 --- a/src/SharpCompress/IO/RewindableStream.cs +++ b/src/SharpCompress/IO/RewindableStream.cs @@ -105,6 +105,12 @@ public override long Position public override int Read(byte[] buffer, int offset, int count) { + //don't actually read if we don't really want to read anything + //currently a network stream bug on Windows for .NET Core + if (count == 0) + { + return 0; + } int read; if (isRewound && bufferStream.Position != bufferStream.Length) {