[DISK] Disable IsFloppyDevice check.

It wrongly marks USB flash drives as a floppy device
This commit is contained in:
Victor Perevertkin 2019-04-28 00:44:55 +03:00
parent b7de5870e6
commit fa530aee92

View file

@ -969,12 +969,14 @@ Return Value:
// IsFloppyDevice also checks for write cache enabled.
//
#if 0
if (IsFloppyDevice(deviceObject) && deviceObject->Characteristics & FILE_REMOVABLE_MEDIA &&
(((PINQUIRYDATA)LunInfo->InquiryData)->DeviceType == DIRECT_ACCESS_DEVICE)) {
status = STATUS_NO_SUCH_DEVICE;
goto CreateDiskDeviceObjectsExit;
}
#endif
DisableWriteCache(deviceObject,LunInfo);