https://git.reactos.org/?p=reactos.git;a=commitdiff;h=379c53db187aa48a34c7f…
commit 379c53db187aa48a34c7f9bad94728bddf26ee81
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Fri Jan 25 13:14:32 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Fri Jan 25 13:14:32 2019 +0100
[AVIFIL32] Sync with Wine Staging 4.0. CORE-15682
---
dll/win32/avifil32/api.c | 9 ++++-----
media/doc/README.WINE | 2 +-
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dll/win32/avifil32/api.c b/dll/win32/avifil32/api.c
index 63a3530591..37fa94169a 100644
--- a/dll/win32/avifil32/api.c
+++ b/dll/win32/avifil32/api.c
@@ -1119,10 +1119,10 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter,
BOOL fSaving)
HeapFree(GetProcessHeap(), 0, lp);
/* add "All files" "*.*" filter if enough space left */
- size = LoadStringW(AVIFILE_hModule, IDS_ALLFILES,
- szAllFiles, (sizeof(szAllFiles) - sizeof(all_files))/sizeof(WCHAR))
+ 1;
+ size = LoadStringW(AVIFILE_hModule, IDS_ALLFILES, szAllFiles,
+ ARRAY_SIZE(szAllFiles) - ARRAY_SIZE(all_files)) + 1;
memcpy( szAllFiles + size, all_files, sizeof(all_files) );
- size += sizeof(all_files) / sizeof(WCHAR);
+ size += ARRAY_SIZE(all_files);
if (cbFilter > size) {
memcpy(szFilter, szAllFiles, size * sizeof(szAllFiles[0]));
@@ -2109,8 +2109,7 @@ HRESULT WINAPI EditStreamSetInfoA(PAVISTREAM pstream,
LPAVISTREAMINFOA asi,
return AVIERR_BADSIZE;
memcpy(&asiw, asi, sizeof(asiw) - sizeof(asiw.szName));
- MultiByteToWideChar(CP_ACP, 0, asi->szName, -1,
- asiw.szName, sizeof(asiw.szName)/sizeof(WCHAR));
+ MultiByteToWideChar(CP_ACP, 0, asi->szName, -1, asiw.szName,
ARRAY_SIZE(asiw.szName));
return EditStreamSetInfoW(pstream, &asiw, sizeof(asiw));
}
diff --git a/media/doc/README.WINE b/media/doc/README.WINE
index 6b8579bf94..e17ef7cf84 100644
--- a/media/doc/README.WINE
+++ b/media/doc/README.WINE
@@ -48,7 +48,7 @@ reactos/dll/win32/advpack # Synced to WineStaging-4.0
reactos/dll/win32/atl # Synced to WineStaging-4.0
reactos/dll/win32/atl80 # Synced to WineStaging-3.3
reactos/dll/win32/atl100 # Synced to WineStaging-3.3
-reactos/dll/win32/avifil32 # Synced to WineStaging-3.9
+reactos/dll/win32/avifil32 # Synced to WineStaging-4.0
reactos/dll/win32/bcrypt # Synced to WineStaging-1.9.23
reactos/dll/win32/browseui # Out of sync
reactos/dll/win32/cabinet # Synced to WineStaging-3.3