Fixed bug triggered by incomplete rar file.

This commit is contained in:
Josef Eklann
2016-02-10 14:56:05 +01:00
parent 1fc14e1075
commit 9b8ddda191

View File

@@ -146,7 +146,7 @@ namespace SharpCompress
readCount = (int)advanceAmount;
}
read = source.Read(buffer, 0, readCount);
if (read < 0)
if (read == 0)
{
break;
}