Fix off by one track ends in Blindwrite 4.

This commit is contained in:
2020-11-03 22:22:55 +00:00
parent 1e109eb758
commit 5f75524e6c

View File

@@ -200,6 +200,9 @@ namespace Aaru.DiscImages
track.lastSector = BitConverter.ToUInt32(tmpUInt, 0);
track.unknown12 = (byte)stream.ReadByte();
// This is off by one
track.lastSector--;
stream.Read(tmpUInt, 0, 4);
track.pregap = BitConverter.ToInt32(tmpUInt, 0);
stream.Read(tmpUInt, 0, 4);