Fix working with Parallel disk images bigger than 4GiB.

This commit is contained in:
2021-07-26 12:40:59 +01:00
parent 2f4746f7ae
commit 483ab29ca2
2 changed files with 7 additions and 7 deletions

View File

@@ -128,9 +128,9 @@ namespace Aaru.DiscImages
return new byte[512];
if(_extended)
imageOff = batOff * _clusterBytes;
imageOff = (ulong)batOff * _clusterBytes;
else
imageOff = batOff * 512;
imageOff = batOff * 512UL;
byte[] cluster = new byte[_clusterBytes];
_imageStream.Seek((long)imageOff, SeekOrigin.Begin);