Alexandre Julliard : mciseq: Build with msvcrt.

Alexandre Julliard julliard at winehq.org
Mon Jun 10 13:43:53 CDT 2019


Module: wine
Branch: master
Commit: 8ce096a9f0b76aae9810e2faa2d1a60988f2bceb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8ce096a9f0b76aae9810e2faa2d1a60988f2bceb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jun 10 10:58:47 2019 +0200

mciseq: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 161a3de..79e5163 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 864ab98..c6bc860 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);




More information about the wine-cvs mailing list