Solved bug in device constructor, allows opening some devices in non-administrator mode.

This commit is contained in:
2018-09-01 23:49:36 +01:00
parent 62f7543055
commit 6f971bca5f

View File

@@ -636,11 +636,9 @@ namespace DiscImageChef.Devices
if(ataId.HasValue) Serial = ataId.Value.SerialNumber; if(ataId.HasValue) Serial = ataId.Value.SerialNumber;
} }
else
{ LastError = 0;
LastError = 0; Error = false;
Error = false;
}
} }
if(scsiSense && (IsUsb || IsFireWire) || Manufacturer == "ATA") if(scsiSense && (IsUsb || IsFireWire) || Manufacturer == "ATA")