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
eb75b178
Commit
eb75b178
authored
Jan 09, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mcicda: Compare GetLastError() to kernel error codes, not ntdll ones.
parent
7918c59f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mcicda.c
dlls/mcicda/mcicda.c
+3
-3
No files found.
dlls/mcicda/mcicda.c
View file @
eb75b178
...
@@ -121,7 +121,7 @@ static DWORD MCICDA_GetStatus(WINE_MCICDAUDIO* wmcda)
...
@@ -121,7 +121,7 @@ static DWORD MCICDA_GetStatus(WINE_MCICDAUDIO* wmcda)
fmt
.
Format
=
IOCTL_CDROM_CURRENT_POSITION
;
fmt
.
Format
=
IOCTL_CDROM_CURRENT_POSITION
;
if
(
!
DeviceIoControl
(
wmcda
->
handle
,
IOCTL_CDROM_READ_Q_CHANNEL
,
&
fmt
,
sizeof
(
fmt
),
if
(
!
DeviceIoControl
(
wmcda
->
handle
,
IOCTL_CDROM_READ_Q_CHANNEL
,
&
fmt
,
sizeof
(
fmt
),
&
data
,
sizeof
(
data
),
&
br
,
NULL
))
{
&
data
,
sizeof
(
data
),
&
br
,
NULL
))
{
if
(
GetLastError
()
==
STATUS_NO_MEDIA_IN_DEVICE
)
mode
=
MCI_MODE_OPEN
;
if
(
GetLastError
()
==
ERROR_NOT_READY
)
mode
=
MCI_MODE_OPEN
;
}
else
{
}
else
{
switch
(
data
.
CurrentPosition
.
Header
.
AudioStatus
)
switch
(
data
.
CurrentPosition
.
Header
.
AudioStatus
)
{
{
...
@@ -145,8 +145,8 @@ static int MCICDA_GetError(WINE_MCICDAUDIO* wmcda)
...
@@ -145,8 +145,8 @@ static int MCICDA_GetError(WINE_MCICDAUDIO* wmcda)
{
{
switch
(
GetLastError
())
switch
(
GetLastError
())
{
{
case
STATUS_NO_MEDIA_IN_DEVICE
:
return
MCIERR_DEVICE_NOT_READY
;
case
ERROR_NOT_READY
:
return
MCIERR_DEVICE_NOT_READY
;
case
STATUS_IO_DEVICE_ERROR
:
return
MCIERR_HARDWARE
;
case
ERROR_IO_DEVICE
:
return
MCIERR_HARDWARE
;
default:
default:
FIXME
(
"Unknown mode %x
\n
"
,
GetLastError
());
FIXME
(
"Unknown mode %x
\n
"
,
GetLastError
());
}
}
...
...
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