Skip to content

Commit

Permalink
Bug on Windows on .NET Core fix (#257)
Browse files Browse the repository at this point in the history
* Bug on Windows on .NET Core fix: https://github.com/dotnet/corefx/issues/20676

* Add comment
  • Loading branch information
adamhathcock committed Jun 9, 2017
1 parent 1656eda commit b10a1cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SharpCompress/IO/RewindableStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b10a1cf

Please sign in to comment.