mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix reading VirtualPC disk images bigger than 4GiB.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user