From f33a33700d7fd979e087a5b9aea112c926d1002e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 10 Jun 2019 10:58:58 +0200 Subject: [PATCH] mciwave: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/mciwave/Makefile.in | 2 ++ dlls/mciwave/mciwave.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/mciwave/Makefile.in b/dlls/mciwave/Makefile.in index 7df953858a3..b96726d1d4c 100644 --- a/dlls/mciwave/Makefile.in +++ b/dlls/mciwave/Makefile.in @@ -1,5 +1,7 @@ MODULE = mciwave.dll IMPORTS = winmm user32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = \ mciwave.c diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c index 0fa9b204f81..78f26c2672c 100644 --- a/dlls/mciwave/mciwave.c +++ b/dlls/mciwave/mciwave.c @@ -32,7 +32,6 @@ #include "wownt32.h" #include "digitalv.h" #include "wine/debug.h" -#include "wine/unicode.h" WINE_DEFAULT_DEBUG_CHANNEL(mciwave); @@ -466,7 +465,7 @@ static LRESULT WAVE_mciOpenFile(WINE_MCIWAVE* wmw, LPCWSTR filename) fn = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(filename) + 1) * sizeof(WCHAR)); if (!fn) return MCIERR_OUT_OF_MEMORY; - strcpyW(fn, filename); + lstrcpyW(fn, filename); HeapFree(GetProcessHeap(), 0, wmw->lpFileName); wmw->lpFileName = fn;