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
84179f4e
Commit
84179f4e
authored
May 30, 2010
by
Austin English
Committed by
Alexandre Julliard
May 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add stub implementation of IOCTL_STORAGE_GET_MEDIA_TYPES/IOCTL_STORAGE_GET_MEDIA_TYPES_EX.
parent
4d50c815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
cdrom.c
dlls/ntdll/cdrom.c
+21
-1
No files found.
dlls/ntdll/cdrom.c
View file @
84179f4e
...
...
@@ -176,6 +176,8 @@ X(IOCTL_STORAGE_CHECK_VERIFY)
X
(
IOCTL_STORAGE_EJECTION_CONTROL
)
X
(
IOCTL_STORAGE_EJECT_MEDIA
)
X
(
IOCTL_STORAGE_GET_DEVICE_NUMBER
)
X
(
IOCTL_STORAGE_GET_MEDIA_TYPES
)
X
(
IOCTL_STORAGE_GET_MEDIA_TYPES_EX
)
X
(
IOCTL_STORAGE_LOAD_MEDIA
)
X
(
IOCTL_STORAGE_MEDIA_REMOVAL
)
X
(
IOCTL_STORAGE_RESET_DEVICE
)
...
...
@@ -745,6 +747,18 @@ static NTSTATUS CDROM_GetDriveGeometry(int dev, int fd, DISK_GEOMETRY* dg)
return
ret
;
}
/******************************************************************
* CDROM_GetMediaType
*
*/
static
NTSTATUS
CDROM_GetMediaType
(
int
dev
,
GET_MEDIA_TYPES
*
medtype
)
{
FIXME
(
": faking success
\n
"
);
medtype
->
DeviceType
=
FILE_DEVICE_CD_ROM
;
medtype
->
MediaInfoCount
=
0
;
return
STATUS_SUCCESS
;
}
/**************************************************************************
* CDROM_Reset [internal]
*/
...
...
@@ -2976,7 +2990,13 @@ NTSTATUS CDROM_DeviceIoControl(HANDLE hDevice,
else
status
=
CDROM_ControlEjection
(
fd
,
lpInBuffer
);
break
;
/* EPP case IOCTL_STORAGE_GET_MEDIA_TYPES: */
case
IOCTL_STORAGE_GET_MEDIA_TYPES
:
case
IOCTL_STORAGE_GET_MEDIA_TYPES_EX
:
sz
=
sizeof
(
GET_MEDIA_TYPES
);
if
(
lpInBuffer
!=
NULL
||
nInBufferSize
!=
0
)
status
=
STATUS_INVALID_PARAMETER
;
else
if
(
nOutBufferSize
<
sz
)
status
=
STATUS_BUFFER_TOO_SMALL
;
else
status
=
CDROM_GetMediaType
(
dev
,
lpOutBuffer
);
break
;
case
IOCTL_STORAGE_GET_DEVICE_NUMBER
:
sz
=
sizeof
(
STORAGE_DEVICE_NUMBER
);
...
...
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