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
086883e8
Commit
086883e8
authored
Sep 22, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed returned type upon open.
Fixed some bogus error checking.
parent
9000e7f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
mcicda.c
multimedia/mcicda.c
+3
-6
No files found.
multimedia/mcicda.c
View file @
086883e8
...
...
@@ -40,7 +40,7 @@ static DWORD CDAUDIO_drvOpen(LPSTR str, LPMCI_OPEN_DRIVER_PARMSA modp)
wmcda
->
wDevID
=
modp
->
wDeviceID
;
mciSetDriverData
(
wmcda
->
wDevID
,
(
DWORD
)
wmcda
);
modp
->
wCustomCommandTable
=
MCI_NO_COMMAND_TABLE
;
modp
->
wType
=
MCI_DEVTYPE_
SEQUENCER
;
modp
->
wType
=
MCI_DEVTYPE_
CD_AUDIO
;
return
modp
->
wDeviceID
;
}
...
...
@@ -229,7 +229,7 @@ static DWORD CDAUDIO_mciOpen(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpOpe
}
if
(
dwFlags
&
MCI_OPEN_ELEMENT
)
{
TRACE
(
"MCI_OPEN_ELEMENT !
\n
"
);
/* return MCIERR_NO_ELEMENT_ALLOWED; */
return
MCIERR_NO_ELEMENT_ALLOWED
;
}
wmcda
->
wNotifyDeviceID
=
dwDeviceID
;
...
...
@@ -241,7 +241,7 @@ static DWORD CDAUDIO_mciOpen(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpOpe
wmcda
->
dwTimeFormat
=
MCI_FORMAT_TMSF
;
if
(
!
CDAUDIO_GetTracksInfo
(
&
wmcda
->
wcda
))
{
WARN
(
"error reading TracksInfo !
\n
"
);
/* return MCIERR_INTERNAL; */
return
MCIERR_INTERNAL
;
}
CDAUDIO_mciSeek
(
wDevID
,
MCI_SEEK_TO_START
,
&
seekParms
);
...
...
@@ -261,9 +261,6 @@ static DWORD CDAUDIO_mciClose(UINT wDevID, DWORD dwParam, LPMCI_GENERIC_PARMS lp
if
(
wmcda
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wmcda
->
nUseCount
==
1
)
{
/* FIXME: I don't think we have to stop CD on exit
* CDAUDIO_mciStop(wDevID, 0, NULL);
*/
CDAUDIO_Close
(
&
wmcda
->
wcda
);
}
wmcda
->
nUseCount
--
;
...
...
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