https://git.reactos.org/?p=reactos.git;a=commitdiff;h=854ed510356e31187ff01…
commit 854ed510356e31187ff01521276658ad29d64a81
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Oct 26 22:49:48 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sat Oct 26 22:49:48 2019 +0100
[AVIFIL32] Sync with Wine Staging 4.18. CORE-16441
---
dll/win32/avifil32/api.c | 3 +-
dll/win32/avifil32/avifile.c | 3 +-
dll/win32/avifil32/avifile_ifaces.idl | 105 ----------------------------------
dll/win32/avifil32/wavfile.c | 3 +-
media/doc/README.WINE | 2 +-
5 files changed, 4 insertions(+), 112 deletions(-)
diff --git a/dll/win32/avifil32/api.c b/dll/win32/avifil32/api.c
index 37fa94169a3..a7f84ba3bce 100644
--- a/dll/win32/avifil32/api.c
+++ b/dll/win32/avifil32/api.c
@@ -38,7 +38,6 @@
#include "avifile_private.h"
#include "wine/debug.h"
-#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile);
@@ -155,7 +154,7 @@ static BOOL AVIFILE_GetFileHandlerByExtension(LPCWSTR szFile, LPCLSID
lpclsid)
{
CHAR szRegKey[25];
CHAR szValue[100];
- LPWSTR szExt = strrchrW(szFile, '.');
+ LPWSTR szExt = wcsrchr(szFile, '.');
LONG len = ARRAY_SIZE(szValue);
if (szExt == NULL)
diff --git a/dll/win32/avifil32/avifile.c b/dll/win32/avifil32/avifile.c
index 33c28b145df..f3cf484d91f 100644
--- a/dll/win32/avifil32/avifile.c
+++ b/dll/win32/avifil32/avifile.c
@@ -46,7 +46,6 @@
#include "avifile_private.h"
#include "extrachunk.h"
-#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile);
@@ -625,7 +624,7 @@ static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile *iface,
LPOLESTR *p
if (*ppszFileName == NULL)
return AVIERR_MEMORY;
- strcpyW(*ppszFileName, This->szFileName);
+ lstrcpyW(*ppszFileName, This->szFileName);
}
return AVIERR_OK;
diff --git a/dll/win32/avifil32/avifile_ifaces.idl
b/dll/win32/avifil32/avifile_ifaces.idl
deleted file mode 100644
index f9280e57287..00000000000
--- a/dll/win32/avifil32/avifile_ifaces.idl
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Proxy support for avifil32
- *
- * Copyright 2016 Dmitry Timoshkov
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-/*
- * These interface descriptions are supposed to be used for automatic proxy
- * generation by an IDL compiler.
- *
- * While it's possible to convert include/vfw.h to an .idl, that's proved to
- * be a major waste of an effort because the resulting interface descriptions
- * can't be used for automatic proxy generation since they are not compatible
- * with IDL compiler restrictions for proxies, and fixing them up would make
- * generated vfw.h source incompatible with PSDK's equivalent.
- */
-
-import "wtypes.idl";
-import "unknwn.idl";
-
-typedef struct _AVISTREAMINFOW
-{
- DWORD fccType;
- DWORD fccHandler;
- DWORD dwFlags;
- DWORD dwCaps;
- WORD wPriority;
- WORD wLanguage;
- DWORD dwScale;
- DWORD dwRate;
- DWORD dwStart;
- DWORD dwLength;
- DWORD dwInitialFrames;
- DWORD dwSuggestedBufferSize;
- DWORD dwQuality;
- DWORD dwSampleSize;
- RECT rcFrame;
- DWORD dwEditCount;
- DWORD dwFormatChangeCount;
- WCHAR szName[64];
-} AVISTREAMINFOW;
-
-[
- object,
- uuid(00020021-0000-0000-c000-000000000046)
-]
-interface IAVIStream : IUnknown
-{
- HRESULT Create(LPARAM lParam1, LPARAM lParam2);
- HRESULT Info(AVISTREAMINFOW *psi, LONG lSize);
- LONG FindSample(LONG lPos, LONG lFlags);
- HRESULT ReadFormat(LONG lPos, [out,size_is(*lpcbFormat)] char *lpFormat, [in,out]
LONG *lpcbFormat);
- HRESULT SetFormat(LONG lPos, [in,size_is(cbFormat)] char *lpFormat, LONG cbFormat);
- HRESULT Read(LONG lStart, LONG lSamples, [out,size_is(cbBuffer)] char *lpBuffer, LONG
cbBuffer, LONG *plBytes, LONG *plSamples);
- HRESULT Write(LONG lStart, LONG lSamples, [in,size_is(cbBuffer)] char *lpBuffer, LONG
cbBuffer, DWORD dwFlags, LONG *plSampWritten, LONG *plBytesWritten);
- HRESULT Delete(LONG lStart, LONG lSamples);
- HRESULT ReadData(DWORD fcc, [out,size_is(*lpcbBuffer)] char *lpBuffer, [in,out] LONG
*lpcbBuffer);
- HRESULT WriteData(DWORD fcc, [in,size_is(cbBuffer)] char *lpBuffer, LONG cbBuffer);
- HRESULT SetInfo(AVISTREAMINFOW *plInfo, LONG cbInfo);
-};
-
-typedef struct _AVIFILEINFOW
-{
- DWORD dwMaxBytesPerSec;
- DWORD dwFlags;
- DWORD dwCaps;
- DWORD dwStreams;
- DWORD dwSuggestedBufferSize;
- DWORD dwWidth;
- DWORD dwHeight;
- DWORD dwScale;
- DWORD dwRate;
- DWORD dwLength;
- DWORD dwEditCount;
- WCHAR szFileType[64];
-} AVIFILEINFOW;
-
-[
- object,
- uuid(00020020-0000-0000-c000-000000000046)
-]
-interface IAVIFile : IUnknown
-{
- HRESULT Info(AVIFILEINFOW *pfi, LONG lSize);
- HRESULT GetStream(IAVIStream **ppStream, DWORD fccType, LONG lParam);
- HRESULT CreateStream(IAVIStream **ppStream, AVISTREAMINFOW *psi);
- HRESULT WriteData(DWORD fcc, [in,size_is(cbBuffer)] char *lpBuffer, LONG cbBuffer);
- HRESULT ReadData(DWORD fcc, [out,size_is(*lpcbBuffer)] char *lpBuffer, [in,out] LONG
*lpcbBuffer);
- HRESULT EndRecord(void);
- HRESULT DeleteStream(DWORD fccType, LONG lParam);
-};
diff --git a/dll/win32/avifil32/wavfile.c b/dll/win32/avifil32/wavfile.c
index 6294ecdc394..8581a51a7ef 100644
--- a/dll/win32/avifil32/wavfile.c
+++ b/dll/win32/avifil32/wavfile.c
@@ -33,7 +33,6 @@
#include "avifile_private.h"
#include "extrachunk.h"
-#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile);
@@ -575,7 +574,7 @@ static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile *iface,
LPOLESTR *p
if (*ppszFileName == NULL)
return AVIERR_MEMORY;
- strcpyW(*ppszFileName, This->szFileName);
+ lstrcpyW(*ppszFileName, This->szFileName);
}
return AVIERR_OK;
diff --git a/media/doc/README.WINE b/media/doc/README.WINE
index 2cc7fd94823..ae8472fc556 100644
--- a/media/doc/README.WINE
+++ b/media/doc/README.WINE
@@ -49,7 +49,7 @@ dll/win32/advpack # Synced to WineStaging-4.18
dll/win32/atl # Synced to WineStaging-4.18
dll/win32/atl80 # Synced to WineStaging-4.18
dll/win32/atl100 # Synced to WineStaging-3.3
-dll/win32/avifil32 # Synced to WineStaging-4.0
+dll/win32/avifil32 # Synced to WineStaging-4.18
dll/win32/bcrypt # Synced to WineStaging-1.9.23
dll/win32/browseui # Out of sync
dll/win32/cabinet # Synced to WineStaging-3.3