From f488102c863c46763f36c837265a207dc59dadd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 30 Dec 2018 14:59:08 +0100 Subject: [PATCH] [CDFS] Addendum to 5429771b, 6c733856 and 3c64b4cb (r75579): When the CDFS driver is used as a fixed disk FS, 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/filesystems/cdfs/volinfo.c b/drivers/filesystems/cdfs/volinfo.c index 7448dd58507..f61c9758868 100644 --- a/drivers/filesystems/cdfs/volinfo.c +++ b/drivers/filesystems/cdfs/volinfo.c @@ -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