[USBSTOR] Weaken the type checks of a device.

This adds usb-cdrom support to usbstor.sys
This commit is contained in:
Victor Perevertkin 2019-04-27 23:29:45 +03:00
parent 7bb93db372
commit b7de5870e6
3 changed files with 6 additions and 4 deletions

View file

@ -897,7 +897,7 @@ USBSTOR_CreatePDO(
return Status;
}
if (PDODeviceExtension->InquiryData->DeviceType == DIRECT_ACCESS_DEVICE)
if (PDODeviceExtension->InquiryData->DeviceType == DIRECT_ACCESS_DEVICE || PDODeviceExtension->InquiryData->DeviceType == READ_ONLY_DIRECT_ACCESS_DEVICE)
{
PDODeviceExtension->IsFloppy = FALSE; // TODO: implement the actual check
}