* DiscImageChef.DiscImages/QED.cs:

Correct calculation of tables.

	* DiscImageChef.DiscImages/VDI.cs:
	  Correct IBM reading.

	* DiscImageChef.Filesystems/FAT.cs:
	  Not all FAT16 implementations set media descriptor
	  correctly.

	* DiscImageChef/Commands/Compare.cs:
	  Do not reuse FiltersList, for some reason same filter is
	  being returned already opened.
This commit is contained in:
2016-09-13 20:47:07 +01:00
parent fa9669c8d4
commit 3cdada5883
4 changed files with 19 additions and 17 deletions

View File

@@ -194,11 +194,12 @@ namespace DiscImageChef.DiscImages
DicConsole.DebugWriteLine("VirtualBox plugin", "vHdr.parentUuid = {0}", vHdr.parentUuid);
DicConsole.DebugWriteLine("VirtualBox plugin", "Reading Image Block Map");
stream.Seek(vHdr.offsetBlocks, SeekOrigin.Begin);
IBM = new uint[vHdr.blocks];
byte[] IBM_b = new byte[vHdr.blocks * 4];
stream.Read(IBM_b, 0, IBM_b.Length);
for(int i = 0; i < IBM.Length; i++)
IBM[i] = BitConverter.ToUInt32(IBM_b, i * 4);
for(int i = 0; i < IBM.Length; i++)
IBM[i] = BitConverter.ToUInt32(IBM_b, i * 4);
sectorCache = new Dictionary<ulong, byte[]>();