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
4dcab280
Commit
4dcab280
authored
Oct 26, 2005
by
Peter Beutner
Committed by
Alexandre Julliard
Oct 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proper implementation of IOCTL_{STORAGE,CDROM}_CHECK_VERIFY.
parent
22c97cd9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
cdrom.c
dlls/ntdll/cdrom.c
+17
-6
No files found.
dlls/ntdll/cdrom.c
View file @
4dcab280
...
@@ -1029,17 +1029,28 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
...
@@ -1029,17 +1029,28 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
/******************************************************************
/******************************************************************
* CDROM_Verify
* CDROM_Verify
*
* Implements: IOCTL_STORAGE_CHECK_VERIFY
* IOCTL_CDROM_CHECK_VERIFY
*
*
*/
*/
static
NTSTATUS
CDROM_Verify
(
int
dev
,
int
fd
)
static
NTSTATUS
CDROM_Verify
(
int
dev
,
int
fd
)
{
{
/* quick implementation */
#if defined(linux)
CDROM_SUB_Q_DATA_FORMAT
fmt
;
int
ret
;
SUB_Q_CHANNEL_DATA
data
;
ret
=
ioctl
(
fd
,
CDROM_DRIVE_STATUS
,
NULL
);
if
(
ret
==
-
1
)
{
TRACE
(
"ioctl CDROM_DRIVE_STATUS failed(%s)!
\n
"
,
strerror
(
errno
));
return
CDROM_GetStatusCode
(
ret
);
}
fmt
.
Format
=
IOCTL_CDROM_CURRENT_POSITION
;
if
(
ret
==
CDS_DISC_OK
)
return
CDROM_ReadQChannel
(
dev
,
fd
,
&
fmt
,
&
data
)
?
1
:
0
;
return
STATUS_SUCCESS
;
else
return
STATUS_NO_MEDIA_IN_DEVICE
;
#endif
FIXME
(
"not implemented for non-linux
\n
"
);
return
STATUS_NOT_SUPPORTED
;
}
}
/******************************************************************
/******************************************************************
...
...
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