Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
3ae829d1
Commit
3ae829d1
authored
Dec 15, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Jan 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Refactor use of mciGetDriverData.
parent
39fa9432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
mcimidi.c
dlls/mciseq/mcimidi.c
+3
-4
No files found.
dlls/mciseq/mcimidi.c
View file @
3ae829d1
...
...
@@ -196,11 +196,11 @@ static DWORD MIDI_drvClose(DWORD dwDevID)
/**************************************************************************
* MIDI_mciGetOpenDev [internal]
*/
static
WINE_MCIMIDI
*
MIDI_mciGetOpenDev
(
UINT
wDevID
)
static
WINE_MCIMIDI
*
MIDI_mciGetOpenDev
(
MCIDEVICEID
wDevID
,
UINT
wMsg
)
{
WINE_MCIMIDI
*
wmm
=
(
WINE_MCIMIDI
*
)
mciGetDriverData
(
wDevID
);
if
(
wmm
==
NULL
||
wmm
->
nUseCount
==
0
)
{
if
(
wmm
==
NULL
||
((
wmm
->
nUseCount
==
0
)
^
(
wMsg
==
MCI_OPEN_DRIVER
))
)
{
WARN
(
"Invalid wDevID=%u
\n
"
,
wDevID
);
return
0
;
}
...
...
@@ -1600,8 +1600,7 @@ LRESULT CALLBACK MCIMIDI_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
return
DefDriverProc
(
dwDevID
,
hDriv
,
wMsg
,
dwParam1
,
dwParam2
);
}
wmm
=
(
wMsg
==
MCI_OPEN_DRIVER
)
?
(
WINE_MCIMIDI
*
)
mciGetDriverData
(
dwDevID
)
:
MIDI_mciGetOpenDev
(
dwDevID
);
wmm
=
MIDI_mciGetOpenDev
(
dwDevID
,
wMsg
);
if
(
wmm
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
switch
(
wMsg
)
{
...
...
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