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
d86b0295
Commit
d86b0295
authored
Jun 11, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midimap: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1eafc6db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Makefile.in
dlls/midimap/Makefile.in
+2
-0
midimap.c
dlls/midimap/midimap.c
+3
-4
No files found.
dlls/midimap/Makefile.in
View file @
d86b0295
MODULE
=
midimap.dll
IMPORTS
=
winmm user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
midimap.c
dlls/midimap/midimap.c
View file @
d86b0295
...
...
@@ -31,7 +31,6 @@
#include "winuser.h"
#include "mmddk.h"
#include "winreg.h"
#include "wine/unicode.h"
#include "wine/debug.h"
/*
...
...
@@ -113,7 +112,7 @@ static BOOL MIDIMAP_FindPort(const WCHAR* name, unsigned* dev)
for
(
*
dev
=
0
;
*
dev
<
numMidiOutPorts
;
(
*
dev
)
++
)
{
TRACE
(
"%s
\n
"
,
wine_dbgstr_w
(
midiOutPorts
[
*
dev
].
name
));
if
(
strcmpW
(
midiOutPorts
[
*
dev
].
name
,
name
)
==
0
)
if
(
l
strcmpW
(
midiOutPorts
[
*
dev
].
name
,
name
)
==
0
)
return
TRUE
;
}
/* try the form #nnn */
...
...
@@ -568,14 +567,14 @@ static LRESULT MIDIMAP_drvOpen(void)
{
if
(
midiOutGetDevCapsW
(
dev
,
&
moc
,
sizeof
(
moc
))
==
0L
)
{
strcpyW
(
midiOutPorts
[
dev
].
name
,
moc
.
szPname
);
l
strcpyW
(
midiOutPorts
[
dev
].
name
,
moc
.
szPname
);
midiOutPorts
[
dev
].
loaded
=
0
;
midiOutPorts
[
dev
].
hMidi
=
0
;
midiOutPorts
[
dev
].
uDevID
=
dev
;
midiOutPorts
[
dev
].
lpbPatch
=
NULL
;
for
(
i
=
0
;
i
<
16
;
i
++
)
midiOutPorts
[
dev
].
aChn
[
i
]
=
i
;
if
(
strncmpW
(
midiOutPorts
[
dev
].
name
,
throughportW
,
strlenW
(
throughportW
))
!=
0
)
if
(
wcsncmp
(
midiOutPorts
[
dev
].
name
,
throughportW
,
l
strlenW
(
throughportW
))
!=
0
)
found_valid_port
=
TRUE
;
}
else
...
...
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