Recognize our CD-Rom drives

svn path=/trunk/; revision=11196
This commit is contained in:
Gé van Geldorp 2004-10-05 07:51:11 +00:00
parent 7f50dbe3fe
commit baf11aeb1c

View file

@ -1,4 +1,4 @@
/* $Id: volume.c,v 1.41 2004/08/24 17:15:42 navaraf Exp $ /* $Id: volume.c,v 1.42 2004/10/05 07:51:11 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -451,6 +451,7 @@ GetDriveTypeW(LPCWSTR lpRootPathName)
switch (FileFsDevice.DeviceType) switch (FileFsDevice.DeviceType)
{ {
case FILE_DEVICE_CD_ROM:
case FILE_DEVICE_CD_ROM_FILE_SYSTEM: case FILE_DEVICE_CD_ROM_FILE_SYSTEM:
return DRIVE_CDROM; return DRIVE_CDROM;
case FILE_DEVICE_VIRTUAL_DISK: case FILE_DEVICE_VIRTUAL_DISK:
@ -466,6 +467,8 @@ GetDriveTypeW(LPCWSTR lpRootPathName)
return DRIVE_FIXED; return DRIVE_FIXED;
} }
DPRINT1("Returning DRIVE_UNKNOWN for device type %d\n", FileFsDevice.DeviceType);
return DRIVE_UNKNOWN; return DRIVE_UNKNOWN;
} }