https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fa530aee92e417e4330c604bbe6ea2e9100709dc

commit fa530aee92e417e4330c604bbe6ea2e9100709dc
Author:     Victor Perevertkin <vic...@perevertkin.ru>
AuthorDate: Sun Apr 28 00:44:55 2019 +0300
Commit:     Victor Perevertkin <vic...@perevertkin.ru>
CommitDate: Tue Jun 11 04:39:43 2019 +0300

    [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);
 

Reply via email to