mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user