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:
@@ -152,6 +152,7 @@ namespace DiscImageChef.Filters
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
backStream.Position = backStream.Length;
|
||||||
long toposition = position - backStream.Position;
|
long toposition = position - backStream.Position;
|
||||||
int fullBufferReads = (int)(toposition / bufferLen);
|
int fullBufferReads = (int)(toposition / bufferLen);
|
||||||
int restToRead = (int)(toposition % bufferLen);
|
int restToRead = (int)(toposition % bufferLen);
|
||||||
@@ -172,6 +173,7 @@ namespace DiscImageChef.Filters
|
|||||||
public override void Flush()
|
public override void Flush()
|
||||||
{
|
{
|
||||||
baseStream.Flush();
|
baseStream.Flush();
|
||||||
|
backStream.Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Read(byte[] buffer, int offset, int count)
|
public override int Read(byte[] buffer, int offset, int count)
|
||||||
|
|||||||
Reference in New Issue
Block a user