midimap: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1eafc6dbe5
commit
d86b02958d
|
@ -1,5 +1,7 @@
|
||||||
MODULE = midimap.dll
|
MODULE = midimap.dll
|
||||||
IMPORTS = winmm user32 advapi32
|
IMPORTS = winmm user32 advapi32
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
midimap.c
|
midimap.c
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
#include "mmddk.h"
|
#include "mmddk.h"
|
||||||
#include "winreg.h"
|
#include "winreg.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -113,7 +112,7 @@ static BOOL MIDIMAP_FindPort(const WCHAR* name, unsigned* dev)
|
||||||
for (*dev = 0; *dev < numMidiOutPorts; (*dev)++)
|
for (*dev = 0; *dev < numMidiOutPorts; (*dev)++)
|
||||||
{
|
{
|
||||||
TRACE("%s\n", wine_dbgstr_w(midiOutPorts[*dev].name));
|
TRACE("%s\n", wine_dbgstr_w(midiOutPorts[*dev].name));
|
||||||
if (strcmpW(midiOutPorts[*dev].name, name) == 0)
|
if (lstrcmpW(midiOutPorts[*dev].name, name) == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
/* try the form #nnn */
|
/* try the form #nnn */
|
||||||
|
@ -568,14 +567,14 @@ static LRESULT MIDIMAP_drvOpen(void)
|
||||||
{
|
{
|
||||||
if (midiOutGetDevCapsW(dev, &moc, sizeof(moc)) == 0L)
|
if (midiOutGetDevCapsW(dev, &moc, sizeof(moc)) == 0L)
|
||||||
{
|
{
|
||||||
strcpyW(midiOutPorts[dev].name, moc.szPname);
|
lstrcpyW(midiOutPorts[dev].name, moc.szPname);
|
||||||
midiOutPorts[dev].loaded = 0;
|
midiOutPorts[dev].loaded = 0;
|
||||||
midiOutPorts[dev].hMidi = 0;
|
midiOutPorts[dev].hMidi = 0;
|
||||||
midiOutPorts[dev].uDevID = dev;
|
midiOutPorts[dev].uDevID = dev;
|
||||||
midiOutPorts[dev].lpbPatch = NULL;
|
midiOutPorts[dev].lpbPatch = NULL;
|
||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++)
|
||||||
midiOutPorts[dev].aChn[i] = i;
|
midiOutPorts[dev].aChn[i] = i;
|
||||||
if (strncmpW(midiOutPorts[dev].name, throughportW, strlenW(throughportW)) != 0)
|
if (wcsncmp(midiOutPorts[dev].name, throughportW, lstrlenW(throughportW)) != 0)
|
||||||
found_valid_port = TRUE;
|
found_valid_port = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue