mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Corrected reading past last read position.
This commit is contained in:
@@ -151,7 +151,8 @@ namespace DiscImageChef.Filters
|
||||
backStream.Position = position;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
backStream.Position = backStream.Length;
|
||||
long toposition = position - backStream.Position;
|
||||
int fullBufferReads = (int)(toposition / bufferLen);
|
||||
int restToRead = (int)(toposition % bufferLen);
|
||||
@@ -172,6 +173,7 @@ namespace DiscImageChef.Filters
|
||||
public override void Flush()
|
||||
{
|
||||
baseStream.Flush();
|
||||
backStream.Flush();
|
||||
}
|
||||
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
|
||||
Reference in New Issue
Block a user