mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-24 07:54:39 +00:00
changed checks to be less than or equal to zero
This commit is contained in:
@@ -217,7 +217,7 @@ public partial class SourceStream : Stream, IStreamStack
|
||||
|
||||
// Safety check: if we have a zero-length stream and we're still not
|
||||
// making progress toward the target position, we're in an invalid state
|
||||
if (currentLength == 0 && Current.Length == 0)
|
||||
if (currentLength <= 0 && Current.Length <= 0)
|
||||
{
|
||||
// Both old and new stream have zero length - cannot make progress
|
||||
throw new InvalidOperationException(
|
||||
|
||||
Reference in New Issue
Block a user