mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Partially fix EOF issues in hashing
This commit is contained in:
@@ -10,7 +10,6 @@ using SabreTools.FileTypes.CHD;
|
|||||||
using SabreTools.IO;
|
using SabreTools.IO;
|
||||||
using SabreTools.Logging;
|
using SabreTools.Logging;
|
||||||
using SabreTools.Skippers;
|
using SabreTools.Skippers;
|
||||||
using Compress.ThreadReaders;
|
|
||||||
|
|
||||||
namespace SabreTools.FileTypes
|
namespace SabreTools.FileTypes
|
||||||
{
|
{
|
||||||
@@ -381,7 +380,11 @@ namespace SabreTools.FileTypes
|
|||||||
next = buffersize > refsize ? (int)refsize : buffersize;
|
next = buffersize > refsize ? (int)refsize : buffersize;
|
||||||
|
|
||||||
if (next > 0)
|
if (next > 0)
|
||||||
|
{
|
||||||
current = input.Read(buffer, 0, next);
|
current = input.Read(buffer, 0, next);
|
||||||
|
if (current == 0)
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finalize all hashing helpers
|
// Finalize all hashing helpers
|
||||||
|
|||||||
Reference in New Issue
Block a user