Author: cgutman
Date: Wed Jan 25 00:03:18 2012
New Revision: 55160
URL:
http://svn.reactos.org/svn/reactos?rev=55160&view=rev
Log:
[USBSTOR]
- Don't lie about removable media support for anything except hard drives
Modified:
branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c
Modified: branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c [iso-8859-1] Wed Jan 25 00:03:18
2012
@@ -639,7 +639,10 @@
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;