mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix when USB descriptors are null at sidecar creation after dump.
This commit is contained in:
@@ -911,7 +911,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
// All USB flash drives report as removable, even if the media is not removable
|
||||
if(!dev.IsRemovable || dev.IsUsb)
|
||||
{
|
||||
if(dev.IsUsb)
|
||||
if(dev.IsUsb && dev.UsbDescriptors != null)
|
||||
if(outputPlugin.SupportedMediaTags.Contains(MediaTagType.USB_Descriptors))
|
||||
sidecar.BlockMedia[0].USB = new USBType
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user