mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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:
parent
82f380100b
commit
131dbc69a7
1 changed files with 4 additions and 1 deletions
|
@ -639,7 +639,10 @@ USBSTOR_HandleDeviceControl(
|
||||||
RtlZeroMemory(ScsiInquiryData, sizeof(INQUIRYDATA));
|
RtlZeroMemory(ScsiInquiryData, sizeof(INQUIRYDATA));
|
||||||
ScsiInquiryData->DeviceType = UFIInquiryResponse->DeviceType;
|
ScsiInquiryData->DeviceType = UFIInquiryResponse->DeviceType;
|
||||||
ScsiInquiryData->DeviceTypeQualifier = (UFIInquiryResponse->RMB & 0x7F);
|
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->Versions = 0x04;
|
||||||
ScsiInquiryData->ResponseDataFormat = 0x02;
|
ScsiInquiryData->ResponseDataFormat = 0x02;
|
||||||
ScsiInquiryData->AdditionalLength = 31;
|
ScsiInquiryData->AdditionalLength = 31;
|
||||||
|
|
Loading…
Reference in a new issue