From fa530aee92e417e4330c604bbe6ea2e9100709dc Mon Sep 17 00:00:00 2001 From: Victor Perevertkin Date: Sun, 28 Apr 2019 00:44:55 +0300 Subject: [PATCH] [DISK] Disable IsFloppyDevice check. It wrongly marks USB flash drives as a floppy device --- drivers/storage/class/disk/disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/storage/class/disk/disk.c b/drivers/storage/class/disk/disk.c index b91e88e04de..580c89998d9 100644 --- a/drivers/storage/class/disk/disk.c +++ b/drivers/storage/class/disk/disk.c @@ -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);