[MAPI32] Sync with Wine Staging 4.0. CORE-15682
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Jan 2019 12:13:59 +0000 (13:13 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Jan 2019 12:13:59 +0000 (13:13 +0100)
dll/win32/mapi32/sendmail.c
dll/win32/mapi32/util.c
media/doc/README.WINE

index 9ebb220..407dd13 100644 (file)
@@ -542,8 +542,8 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam,
     }
 
     /* Display an error message since we apparently have no mail clients */
-    LoadStringW(hInstMAPI32, IDS_NO_MAPI_CLIENT, error_msg, sizeof(error_msg) / sizeof(WCHAR));
-    LoadStringW(hInstMAPI32, IDS_SEND_MAIL, msg_title, sizeof(msg_title) / sizeof(WCHAR));
+    LoadStringW(hInstMAPI32, IDS_NO_MAPI_CLIENT, error_msg, ARRAY_SIZE(error_msg));
+    LoadStringW(hInstMAPI32, IDS_SEND_MAIL, msg_title, ARRAY_SIZE(msg_title));
 
     MessageBoxW((HWND) uiparam, error_msg, msg_title, MB_ICONEXCLAMATION);
 
@@ -701,8 +701,8 @@ ULONG WINAPI MAPISendMailW(LHANDLE session, ULONG_PTR uiparam,
     }
 
     /* Display an error message since we apparently have no mail clients */
-    LoadStringW(hInstMAPI32, IDS_NO_MAPI_CLIENT, error_msg, sizeof(error_msg) / sizeof(WCHAR));
-    LoadStringW(hInstMAPI32, IDS_SEND_MAIL, msg_title, sizeof(msg_title) / sizeof(WCHAR));
+    LoadStringW(hInstMAPI32, IDS_NO_MAPI_CLIENT, error_msg, ARRAY_SIZE(error_msg));
+    LoadStringW(hInstMAPI32, IDS_SEND_MAIL, msg_title, ARRAY_SIZE(msg_title));
 
     MessageBoxW((HWND) uiparam, error_msg, msg_title, MB_ICONEXCLAMATION);
 
index 13e4aff..9c3b019 100644 (file)
@@ -903,7 +903,7 @@ BOOL WINAPI FGetComponentPath(LPCSTR component, LPCSTR qualifier, LPSTR dll_path
             char lcid_ver[20];
             UINT i;
 
-            for (i = 0; i < sizeof(fmt)/sizeof(fmt[0]); i++)
+            for (i = 0; i < ARRAY_SIZE(fmt); i++)
             {
                 /* FIXME: what's the correct behaviour here? */
                 if (!qualifier || qualifier == lcid_ver)
index 090c297..db06b18 100644 (file)
@@ -89,7 +89,7 @@ reactos/dll/win32/jscript             # Synced to WineStaging-4.0
 reactos/dll/win32/jsproxy             # Synced to WineStaging-4.0
 reactos/dll/win32/loadperf            # Synced to WineStaging-3.3
 reactos/dll/win32/lz32                # Synced to WineStaging-3.3
-reactos/dll/win32/mapi32              # Synced to WineStaging-3.3
+reactos/dll/win32/mapi32              # Synced to WineStaging-4.0
 reactos/dll/win32/mciavi32            # Synced to WineStaging-3.3
 reactos/dll/win32/mcicda              # Synced to WineStaging-3.3
 reactos/dll/win32/mciqtz32            # Synced to WineStaging-3.3