[AVIFIL32] Sync with Wine Staging 4.0. CORE-15682
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 25 Jan 2019 12:14:32 +0000 (13:14 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 25 Jan 2019 12:14:32 +0000 (13:14 +0100)
dll/win32/avifil32/api.c
media/doc/README.WINE

index 63a3530..37fa941 100644 (file)
@@ -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));
 }
index 6b8579b..e17ef7c 100644 (file)
@@ -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