Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f556d0e9
Commit
f556d0e9
authored
Mar 30, 2015
by
Michael Müller
Committed by
Alexandre Julliard
May 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Return correct device type for cd devices without medium.
parent
7ebe22e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
volume.c
dlls/kernel32/volume.c
+9
-1
No files found.
dlls/kernel32/volume.c
View file @
f556d0e9
...
...
@@ -1610,7 +1610,15 @@ UINT WINAPI GetDriveTypeW(LPCWSTR root) /* [in] String describing drive */
HANDLE
handle
;
UINT
ret
;
if
(
!
open_device_root
(
root
,
&
handle
))
return
DRIVE_NO_ROOT_DIR
;
if
(
!
open_device_root
(
root
,
&
handle
))
{
/* CD ROM devices do not necessarily have a volume, but a drive type */
ret
=
get_mountmgr_drive_type
(
root
);
if
(
ret
==
DRIVE_CDROM
||
ret
==
DRIVE_REMOVABLE
)
return
ret
;
return
DRIVE_NO_ROOT_DIR
;
}
status
=
NtQueryVolumeInformationFile
(
handle
,
&
io
,
&
info
,
sizeof
(
info
),
FileFsDeviceInformation
);
NtClose
(
handle
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment