avifil32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bc27abc14c
commit
cdf1e763bf
@ -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 @@
|
|||||||
#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)
|
|||||||
{
|
{
|
||||||
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 @@
|
|||||||
#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
|
|||||||
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 @@
|
|||||||
#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
|
|||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user