Commit cdf1e763 authored by Alexandre Julliard's avatar Alexandre Julliard

avifil32: Build with msvcrt.

parent bc27abc1
...@@ -2,6 +2,8 @@ MODULE = avifil32.dll ...@@ -2,6 +2,8 @@ MODULE = avifil32.dll
IMPORTLIB = avifil32 IMPORTLIB = avifil32
IMPORTS = uuid msacm32 msvfw32 winmm ole32 user32 advapi32 rpcrt4 IMPORTS = uuid msacm32 msvfw32 winmm ole32 user32 advapi32 rpcrt4
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
acmstream.c \ acmstream.c \
api.c \ api.c \
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include "avifile_private.h" #include "avifile_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile); WINE_DEFAULT_DEBUG_CHANNEL(avifile);
...@@ -155,7 +154,7 @@ static BOOL AVIFILE_GetFileHandlerByExtension(LPCWSTR szFile, LPCLSID lpclsid) ...@@ -155,7 +154,7 @@ static BOOL AVIFILE_GetFileHandlerByExtension(LPCWSTR szFile, LPCLSID lpclsid)
{ {
CHAR szRegKey[25]; CHAR szRegKey[25];
CHAR szValue[100]; CHAR szValue[100];
LPWSTR szExt = strrchrW(szFile, '.'); LPWSTR szExt = wcsrchr(szFile, '.');
LONG len = ARRAY_SIZE(szValue); LONG len = ARRAY_SIZE(szValue);
if (szExt == NULL) if (szExt == NULL)
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include "avifile_private.h" #include "avifile_private.h"
#include "extrachunk.h" #include "extrachunk.h"
#include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile); WINE_DEFAULT_DEBUG_CHANNEL(avifile);
...@@ -625,7 +624,7 @@ static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile *iface, LPOLESTR *p ...@@ -625,7 +624,7 @@ static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile *iface, LPOLESTR *p
if (*ppszFileName == NULL) if (*ppszFileName == NULL)
return AVIERR_MEMORY; return AVIERR_MEMORY;
strcpyW(*ppszFileName, This->szFileName); lstrcpyW(*ppszFileName, This->szFileName);
} }
return AVIERR_OK; return AVIERR_OK;
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "avifile_private.h" #include "avifile_private.h"
#include "extrachunk.h" #include "extrachunk.h"
#include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile); WINE_DEFAULT_DEBUG_CHANNEL(avifile);
...@@ -575,7 +574,7 @@ static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile *iface, LPOLESTR *p ...@@ -575,7 +574,7 @@ static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile *iface, LPOLESTR *p
if (*ppszFileName == NULL) if (*ppszFileName == NULL)
return AVIERR_MEMORY; return AVIERR_MEMORY;
strcpyW(*ppszFileName, This->szFileName); lstrcpyW(*ppszFileName, This->szFileName);
} }
return AVIERR_OK; return AVIERR_OK;
......
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