[CDFS] Addendum to 5429771b, 6c733856 and 3c64b4cb (r75579): When the CDFS driver...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 30 Dec 2018 13:59:08 +0000 (14:59 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 30 Dec 2018 14:26:43 +0000 (15:26 +0100)
the type of device it should return must not be FILE_DEVICE_CD_ROM, but must be the actual underlying one!

This fixes recognizing *removable* USB keys as disks and not CD-ROMs.

CORE-13184

drivers/filesystems/cdfs/volinfo.c

index 7448dd5..f61c975 100644 (file)
@@ -418,7 +418,11 @@ Return Value:
     //
 
     Buffer->Characteristics = Vcb->TargetDeviceObject->Characteristics;
+#ifndef __REACTOS__
     Buffer->DeviceType = FILE_DEVICE_CD_ROM;
+#else
+    Buffer->DeviceType = Vcb->TargetDeviceObject->DeviceType;
+#endif
 
     //
     //  Adjust the length variable