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
b82f615c
Commit
b82f615c
authored
Nov 05, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Use the current device ID for notification.
parent
e3bce34a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
mciwave.c
dlls/mciwave/mciwave.c
+7
-3
No files found.
dlls/mciwave/mciwave.c
View file @
b82f615c
...
...
@@ -211,6 +211,9 @@ static WINE_MCIWAVE *WAVE_mciGetOpenDev(MCIDEVICEID wDevID)
*/
static
void
WAVE_mciNotify
(
DWORD_PTR
hWndCallBack
,
WINE_MCIWAVE
*
wmw
,
UINT
wStatus
)
{
/* We simply save one parameter by not passing the wDevID local
* to the command. They are the same (via mciGetDriverData).
*/
MCIDEVICEID
wDevID
=
wmw
->
wNotifyDeviceID
;
HANDLE
old
=
InterlockedExchangePointer
(
&
wmw
->
hCallback
,
NULL
);
if
(
old
)
mciDriverNotify
(
old
,
wDevID
,
MCI_NOTIFY_SUPERSEDED
);
...
...
@@ -535,7 +538,8 @@ static LRESULT WAVE_mciOpen(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_WAVE_OPEN_P
WAVE_mciDefaultFmt
(
wmw
);
TRACE
(
"wDevID=%04X (lpParams->wDeviceID=%08X)
\n
"
,
wDevID
,
lpOpenParms
->
wDeviceID
);
wmw
->
wNotifyDeviceID
=
lpOpenParms
->
wDeviceID
;
/* Logs show the native winmm calls us with 0 still in lpOpenParms.wDeviceID */
wmw
->
wNotifyDeviceID
=
wDevID
;
if
(
dwFlags
&
MCI_OPEN_ELEMENT
)
{
if
(
dwFlags
&
MCI_OPEN_ELEMENT_ID
)
{
...
...
@@ -805,7 +809,7 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt,
wmw
->
dwStatus
=
MCI_MODE_PLAY
;
if
(
!
(
dwFlags
&
MCI_WAIT
))
{
return
MCI_SendCommandAsync
(
w
mw
->
wNotifyDevice
ID
,
WAVE_mciPlay
,
dwFlags
,
return
MCI_SendCommandAsync
(
w
Dev
ID
,
WAVE_mciPlay
,
dwFlags
,
(
DWORD_PTR
)
lpParms
,
sizeof
(
MCI_PLAY_PARMS
));
}
...
...
@@ -1009,7 +1013,7 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
wmw
->
dwStatus
=
MCI_MODE_RECORD
;
if
(
!
(
dwFlags
&
MCI_WAIT
))
{
return
MCI_SendCommandAsync
(
w
mw
->
wNotifyDevice
ID
,
WAVE_mciRecord
,
dwFlags
,
return
MCI_SendCommandAsync
(
w
Dev
ID
,
WAVE_mciRecord
,
dwFlags
,
(
DWORD_PTR
)
lpParms
,
sizeof
(
MCI_RECORD_PARMS
));
}
...
...
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