From 37ca889bf37ab4e5cc86ee9e43c317186b0b20c6 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 27 Jun 2019 09:09:06 +0200 Subject: [PATCH] wmp: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/wmp/Makefile.in | 2 ++ dlls/wmp/player.c | 2 +- dlls/wmp/wmp_private.h | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/wmp/Makefile.in b/dlls/wmp/Makefile.in index 273e536561f..5ed3d42cd8c 100644 --- a/dlls/wmp/Makefile.in +++ b/dlls/wmp/Makefile.in @@ -1,6 +1,8 @@ MODULE = wmp.dll IMPORTS = oleaut32 ole32 user32 gdi32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = \ events.c \ oleobj.c \ diff --git a/dlls/wmp/player.c b/dlls/wmp/player.c index 519ffa1d18f..7a1befea217 100644 --- a/dlls/wmp/player.c +++ b/dlls/wmp/player.c @@ -1435,7 +1435,7 @@ static HRESULT WINAPI WMPControls_get_isAvailable(IWMPControls *iface, BSTR bstr TRACE("(%p)->(%s %p)\n", This, debugstr_w(bstrItem), pIsAvailable); if (!This->filter_graph) { *pIsAvailable = VARIANT_FALSE; - } else if (strcmpW(currentPosition, bstrItem) == 0) { + } else if (wcscmp(currentPosition, bstrItem) == 0) { DWORD capabilities; IMediaSeeking_GetCapabilities(This->media_seeking, &capabilities); *pIsAvailable = (capabilities & AM_SEEKING_CanSeekAbsolute) ? diff --git a/dlls/wmp/wmp_private.h b/dlls/wmp/wmp_private.h index ab9c6d098c4..27ec55ecc3b 100644 --- a/dlls/wmp/wmp_private.h +++ b/dlls/wmp/wmp_private.h @@ -20,7 +20,6 @@ #include "windows.h" #include "wine/heap.h" -#include "wine/unicode.h" #include "ole2.h" #include "dshow.h" #include "wmp.h" @@ -121,7 +120,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *str) WCHAR *ret; if(str) { - size_t size = strlenW(str)+1; + size_t size = lstrlenW(str)+1; ret = heap_alloc(size*sizeof(WCHAR)); if(ret) memcpy(ret, str, size*sizeof(WCHAR));