Commit c7d06a08 authored by Alexandre Julliard's avatar Alexandre Julliard

mf: Build with msvcrt.

parent 78f74446
...@@ -2,6 +2,8 @@ MODULE = mf.dll ...@@ -2,6 +2,8 @@ MODULE = mf.dll
IMPORTLIB = mf IMPORTLIB = mf
IMPORTS = mfplat ole32 uuid mfuuid IMPORTS = mfplat ole32 uuid mfuuid
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
main.c \ main.c \
samplegrabber.c \ samplegrabber.c \
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "config.h"
#include <stdarg.h> #include <stdarg.h>
...@@ -39,7 +38,6 @@ ...@@ -39,7 +38,6 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h" #include "wine/heap.h"
#include "wine/unicode.h"
#include "wine/list.h" #include "wine/list.h"
WINE_DEFAULT_DEBUG_CHANNEL(mfplat); WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
...@@ -705,7 +703,7 @@ static WCHAR *heap_strdupW(const WCHAR *str) ...@@ -705,7 +703,7 @@ static WCHAR *heap_strdupW(const WCHAR *str)
{ {
unsigned int size; unsigned int size;
size = (strlenW(str) + 1) * sizeof(WCHAR); size = (lstrlenW(str) + 1) * sizeof(WCHAR);
ret = heap_alloc(size); ret = heap_alloc(size);
if (ret) if (ret)
memcpy(ret, str, size); memcpy(ret, str, size);
...@@ -930,7 +928,7 @@ static HRESULT WINAPI file_scheme_handler_callback_Invoke(IMFAsyncCallback *ifac ...@@ -930,7 +928,7 @@ static HRESULT WINAPI file_scheme_handler_callback_Invoke(IMFAsyncCallback *ifac
/* Strip from scheme, MFCreateFile() won't be expecting it. */ /* Strip from scheme, MFCreateFile() won't be expecting it. */
url = context->url; url = context->url;
if (!strncmpiW(context->url, schemeW, ARRAY_SIZE(schemeW))) if (!wcsnicmp(context->url, schemeW, ARRAY_SIZE(schemeW)))
url += ARRAY_SIZE(schemeW); url += ARRAY_SIZE(schemeW);
hr = MFCreateFile(context->flags & MF_RESOLUTION_WRITE ? MF_ACCESSMODE_READWRITE : MF_ACCESSMODE_READ, hr = MFCreateFile(context->flags & MF_RESOLUTION_WRITE ? MF_ACCESSMODE_READWRITE : MF_ACCESSMODE_READ,
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "config.h"
#include <stdarg.h> #include <stdarg.h>
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "config.h"
#include "wine/port.h"
#include <stdarg.h> #include <stdarg.h>
...@@ -806,7 +804,7 @@ static TOPOID topology_generate_id(void) ...@@ -806,7 +804,7 @@ static TOPOID topology_generate_id(void)
{ {
old = next_topology_id; old = next_topology_id;
} }
while (interlocked_cmpxchg64((LONG64 *)&next_topology_id, old + 1, old) != old); while (InterlockedCompareExchange64((LONG64 *)&next_topology_id, old + 1, old) != old);
return next_topology_id; return next_topology_id;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment