[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
This commit is contained in:
Hermès Bélusca-Maïto 2018-12-30 14:59:08 +01:00
parent bf6b5e1ceb
commit f488102c86
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View 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