* DiscImageChef.Decoders/SCSI/MMC/Features.cs:

Correct math priority

	* DiscImageChef.Devices/Device/ScsiCommands.cs:
	  Correct command size typo

	* DiscImageChef/Commands/DeviceInfo.cs:
	  Add MMC GET CONFIGURATION
This commit is contained in:
2015-11-01 22:09:10 +00:00
parent dfb15d0e4f
commit f02e668173
6 changed files with 251 additions and 29 deletions

View File

@@ -494,7 +494,7 @@ namespace DiscImageChef.Devices
if (sense)
return true;
ushort confLength = (ushort)(((int)buffer[2] << 8) + buffer[3] + 2);
ushort confLength = (ushort)(((int)buffer[2] << 8) + buffer[3] + 4);
buffer = new byte[confLength];
cdb[7] = (byte)((buffer.Length & 0xFF00) >> 8);
cdb[8] = (byte)(buffer.Length & 0xFF);