wmp: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7c62577295
commit
37ca889bf3
|
@ -1,6 +1,8 @@
|
||||||
MODULE = wmp.dll
|
MODULE = wmp.dll
|
||||||
IMPORTS = oleaut32 ole32 user32 gdi32
|
IMPORTS = oleaut32 ole32 user32 gdi32
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
events.c \
|
events.c \
|
||||||
oleobj.c \
|
oleobj.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);
|
TRACE("(%p)->(%s %p)\n", This, debugstr_w(bstrItem), pIsAvailable);
|
||||||
if (!This->filter_graph) {
|
if (!This->filter_graph) {
|
||||||
*pIsAvailable = VARIANT_FALSE;
|
*pIsAvailable = VARIANT_FALSE;
|
||||||
} else if (strcmpW(currentPosition, bstrItem) == 0) {
|
} else if (wcscmp(currentPosition, bstrItem) == 0) {
|
||||||
DWORD capabilities;
|
DWORD capabilities;
|
||||||
IMediaSeeking_GetCapabilities(This->media_seeking, &capabilities);
|
IMediaSeeking_GetCapabilities(This->media_seeking, &capabilities);
|
||||||
*pIsAvailable = (capabilities & AM_SEEKING_CanSeekAbsolute) ?
|
*pIsAvailable = (capabilities & AM_SEEKING_CanSeekAbsolute) ?
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#include "wine/heap.h"
|
#include "wine/heap.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
#include "ole2.h"
|
#include "ole2.h"
|
||||||
#include "dshow.h"
|
#include "dshow.h"
|
||||||
#include "wmp.h"
|
#include "wmp.h"
|
||||||
|
@ -121,7 +120,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *str)
|
||||||
WCHAR *ret;
|
WCHAR *ret;
|
||||||
|
|
||||||
if(str) {
|
if(str) {
|
||||||
size_t size = strlenW(str)+1;
|
size_t size = lstrlenW(str)+1;
|
||||||
ret = heap_alloc(size*sizeof(WCHAR));
|
ret = heap_alloc(size*sizeof(WCHAR));
|
||||||
if(ret)
|
if(ret)
|
||||||
memcpy(ret, str, size*sizeof(WCHAR));
|
memcpy(ret, str, size*sizeof(WCHAR));
|
||||||
|
|
Loading…
Reference in New Issue