Fix reading VirtualPC disk images bigger than 4GiB.

This commit is contained in:
2021-07-26 12:43:57 +01:00
parent de6a39519f
commit ba8948b059

View File

@@ -675,7 +675,7 @@ namespace Aaru.DiscImages
byte[] bitmap = new byte[_bitmapSize * 512];
// Offset of block in file
uint blockOffset = _blockAllocationTable[blockNumber] * 512;
long blockOffset = _blockAllocationTable[blockNumber] * 512L;
int bitmapByte = (int)Math.Floor((double)sectorInBlock / 8);
int bitmapBit = (int)(sectorInBlock % 8);