* DiscImageChef.Decoders/SCSI/Modes.cs:

Polished some bugs and typos and format

	* DiscImageChef.Devices/Device/ScsiCommands.cs:
	  Corrected math typo.

	* DiscImageChef/Commands/DeviceInfo.cs:
	  Added MODE SENSE to device information.
This commit is contained in:
2015-10-31 21:03:18 +00:00
parent cd1ce818ff
commit 6b9f8f97c8
6 changed files with 704 additions and 356 deletions

View File

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