Fix detection of flash drives that report themselves as CD drives when they're not.

This commit is contained in:
2020-12-03 18:19:05 +00:00
parent 72870f3c10
commit 1e4ac8b2fb
4 changed files with 21 additions and 14 deletions

View File

@@ -180,7 +180,8 @@ namespace Aaru.Core.Devices.Dumping
if(dskType == MediaType.Unknown)
dskType = MediaTypeFromDevice.GetFromScsi((byte)_dev.ScsiType, _dev.Manufacturer, _dev.Model,
scsiMediumType, scsiDensityCode, blocks + 1, blockSize);
scsiMediumType, scsiDensityCode, blocks + 1, blockSize,
_dev.IsUsb);
if(_dev.ScsiType == PeripheralDeviceTypes.MultiMediaDevice)
MMC.DetectDiscType(ref dskType, 1, null, _dev, out _, out _, 0);