Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
mcicda.c
multimedia/mcicda.c
+5
-8
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
--
;
...
...
@@ -592,7 +589,7 @@ static DWORD CDAUDIO_mciResume(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS l
if
(
lpParms
&&
(
dwFlags
&
MCI_NOTIFY
))
{
TRACE
(
"MCI_NOTIFY_SUCCESSFUL %08lX !
\n
"
,
lpParms
->
dwCallback
);
mciDriverNotify
((
HWND
)
LOWORD
(
lpParms
->
dwCallback
),
wmcda
->
wNotifyDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
wmcda
->
wNotifyDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
}
return
0
;
}
...
...
@@ -701,7 +698,7 @@ static DWORD CDAUDIO_mciSet(UINT wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpParms)
TRACE
(
"MCI_NOTIFY_SUCCESSFUL %08lX !
\n
"
,
lpParms
->
dwCallback
);
mciDriverNotify
((
HWND
)
LOWORD
(
lpParms
->
dwCallback
),
wmcda
->
wNotifyDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
wmcda
->
wNotifyDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
}
return
0
;
}
...
...
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