wmp: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-06-27 09:09:06 +02:00
parent 7c62577295
commit 37ca889bf3
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,8 @@
MODULE = wmp.dll
IMPORTS = oleaut32 ole32 user32 gdi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
events.c \
oleobj.c \

View File

@ -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) ?

View File

@ -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));