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
8c88b511
Commit
8c88b511
authored
Mar 17, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midimap: Defer initialisation.
parent
d790530d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
midimap.c
dlls/midimap/midimap.c
+9
-4
No files found.
dlls/midimap/midimap.c
View file @
8c88b511
...
...
@@ -495,6 +495,9 @@ static DWORD modReset(MIDIMAPDATA* mom)
return
ret
;
}
static
LRESULT
MIDIMAP_drvOpen
(
void
);
static
LRESULT
MIDIMAP_drvClose
(
void
);
/**************************************************************************
* modMessage (MIDIMAP.@)
*/
...
...
@@ -507,7 +510,9 @@ DWORD WINAPI MIDIMAP_modMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
switch
(
wMsg
)
{
case
DRVM_INIT
:
return
MIDIMAP_drvOpen
();
case
DRVM_EXIT
:
return
MIDIMAP_drvClose
();
case
DRVM_ENABLE
:
case
DRVM_DISABLE
:
/* FIXME: Pretend this is supported */
...
...
@@ -539,7 +544,7 @@ DWORD WINAPI MIDIMAP_modMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
/**************************************************************************
* MIDIMAP_drvOpen [internal]
*/
static
LRESULT
MIDIMAP_drvOpen
(
LPSTR
str
)
static
LRESULT
MIDIMAP_drvOpen
(
void
)
{
MIDIOUTCAPSW
moc
;
unsigned
dev
,
i
;
...
...
@@ -574,7 +579,7 @@ static LRESULT MIDIMAP_drvOpen(LPSTR str)
/**************************************************************************
* MIDIMAP_drvClose [internal]
*/
static
LRESULT
MIDIMAP_drvClose
(
DWORD_PTR
dwDevID
)
static
LRESULT
MIDIMAP_drvClose
(
void
)
{
if
(
midiOutPorts
)
{
...
...
@@ -598,8 +603,8 @@ LRESULT CALLBACK MIDIMAP_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
{
case
DRV_LOAD
:
return
1
;
case
DRV_FREE
:
return
1
;
case
DRV_OPEN
:
return
MIDIMAP_drvOpen
((
LPSTR
)
dwParam1
)
;
case
DRV_CLOSE
:
return
MIDIMAP_drvClose
(
dwDevID
)
;
case
DRV_OPEN
:
return
1
;
case
DRV_CLOSE
:
return
1
;
case
DRV_ENABLE
:
return
1
;
case
DRV_DISABLE
:
return
1
;
case
DRV_QUERYCONFIGURE
:
return
1
;
...
...
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