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

@@ -990,7 +990,9 @@ namespace Aaru.DiscImages
_imageInfo.MediaType = MediaTypeFromDevice.GetFromScsi((byte)devType, _imageInfo.DriveManufacturer,
_imageInfo.DriveModel, mediumType,
densityCode, _imageInfo.Sectors,
_imageInfo.SectorSize);
_imageInfo.SectorSize,
_mediaTags.ContainsKey(MediaTagType.
USB_Descriptors));
}
if(_imageInfo.MediaType == MediaType.Unknown)