* DiscImageChef.Core/Devices/Scanning/ATA.cs:

Correctly use LBA mode. Call FindReadCommand().

	* DiscImageChef.Core/Devices/Dumping/ATA.cs:
	  Call FindReadCommand().
This commit is contained in:
2017-06-03 01:24:58 +01:00
parent b20d5ce2f6
commit 4b2903fab8
2 changed files with 12 additions and 3 deletions

View File

@@ -178,6 +178,11 @@ namespace DiscImageChef.Core.Devices.Dumping
}
uint blockSize = ataReader.LogicalBlockSize;
uint physicalsectorsize = ataReader.PhysicalBlockSize;
if(ataReader.FindReadCommand())
{
DicConsole.ErrorWriteLine(ataReader.ErrorMessage);
return;
}
// Check how many blocks to read, if error show and return
if(ataReader.GetBlocksToRead())
{