From 8ce096a9f0b76aae9810e2faa2d1a60988f2bceb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 10 Jun 2019 10:58:47 +0200 Subject: [PATCH] mciseq: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/mciseq/Makefile.in | 2 ++ dlls/mciseq/mcimidi.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/mciseq/Makefile.in b/dlls/mciseq/Makefile.in index 161a3deb994..79e51630b99 100644 --- a/dlls/mciseq/Makefile.in +++ b/dlls/mciseq/Makefile.in @@ -1,5 +1,7 @@ MODULE = mciseq.dll IMPORTS = winmm user32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = \ mcimidi.c diff --git a/dlls/mciseq/mcimidi.c b/dlls/mciseq/mcimidi.c index 864ab98067c..c6bc860b1e6 100644 --- a/dlls/mciseq/mcimidi.c +++ b/dlls/mciseq/mcimidi.c @@ -32,12 +32,12 @@ #include "windef.h" #include "winbase.h" +#include "winnls.h" #include "wingdi.h" #include "winuser.h" #include "wownt32.h" #include "mmddk.h" #include "wine/debug.h" -#include "wine/unicode.h" WINE_DEFAULT_DEBUG_CHANNEL(mcimidi); @@ -692,8 +692,8 @@ static DWORD MIDI_mciOpen(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_OPEN_PARMSW lp return MCIERR_FILE_NOT_FOUND; } wmm->lpstrElementName = HeapAlloc(GetProcessHeap(), 0, - (strlenW(lpParms->lpstrElementName) + 1) * sizeof(WCHAR)); - strcpyW(wmm->lpstrElementName, lpParms->lpstrElementName); + (lstrlenW(lpParms->lpstrElementName) + 1) * sizeof(WCHAR)); + lstrcpyW(wmm->lpstrElementName, lpParms->lpstrElementName); } } TRACE("hFile=%p\n", wmm->hFile);