mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[USBSTOR]
- Don't lie about removable media support for anything except hard drives svn path=/branches/usb-bringup-trunk/; revision=55160
This commit is contained in:
@@ -639,7 +639,10 @@ USBSTOR_HandleDeviceControl(
|
||||
RtlZeroMemory(ScsiInquiryData, sizeof(INQUIRYDATA));
|
||||
ScsiInquiryData->DeviceType = UFIInquiryResponse->DeviceType;
|
||||
ScsiInquiryData->DeviceTypeQualifier = (UFIInquiryResponse->RMB & 0x7F);
|
||||
ScsiInquiryData->RemovableMedia = FALSE; //HACK for IoReadPartitionTable
|
||||
|
||||
/* Hack for IoReadPartitionTable call in disk.sys */
|
||||
ScsiInquiryData->RemovableMedia = (ScsiInquiryData->DeviceType != DIRECT_ACCESS_DEVICE) ? 1 : 0;
|
||||
|
||||
ScsiInquiryData->Versions = 0x04;
|
||||
ScsiInquiryData->ResponseDataFormat = 0x02;
|
||||
ScsiInquiryData->AdditionalLength = 31;
|
||||
|
||||
Reference in New Issue
Block a user