mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Recognize our CD-Rom drives
svn path=/trunk/; revision=11196
This commit is contained in:
parent
7f50dbe3fe
commit
baf11aeb1c
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -451,6 +451,7 @@ GetDriveTypeW(LPCWSTR lpRootPathName)
|
|||
|
||||
switch (FileFsDevice.DeviceType)
|
||||
{
|
||||
case FILE_DEVICE_CD_ROM:
|
||||
case FILE_DEVICE_CD_ROM_FILE_SYSTEM:
|
||||
return DRIVE_CDROM;
|
||||
case FILE_DEVICE_VIRTUAL_DISK:
|
||||
|
@ -466,6 +467,8 @@ GetDriveTypeW(LPCWSTR lpRootPathName)
|
|||
return DRIVE_FIXED;
|
||||
}
|
||||
|
||||
DPRINT1("Returning DRIVE_UNKNOWN for device type %d\n", FileFsDevice.DeviceType);
|
||||
|
||||
return DRIVE_UNKNOWN;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue