Michael Stefaniuc : msxml3/tests: Use the ARRAY_SIZE() macro.

Alexandre Julliard julliard at winehq.org
Tue Nov 20 15:39:51 CST 2018


Module: wine
Branch: master
Commit: c743b72d250b3ad273d4885e5ff8e5181e7c793c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c743b72d250b3ad273d4885e5ff8e5181e7c793c

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Nov 15 20:42:13 2018 +0100

msxml3/tests: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msxml3/tests/xmlview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msxml3/tests/xmlview.c b/dlls/msxml3/tests/xmlview.c
index dc8ab7d..53eefcb 100644
--- a/dlls/msxml3/tests/xmlview.c
+++ b/dlls/msxml3/tests/xmlview.c
@@ -206,7 +206,7 @@ static void test_Load(void)
     BSTR source;
 
     lstrcpyW(buf, res);
-    GetModuleFileNameW(NULL, buf+lstrlenW(buf), (sizeof(buf)-sizeof(res))/sizeof(WCHAR));
+    GetModuleFileNameW(NULL, buf+lstrlenW(buf), ARRAY_SIZE(buf)-ARRAY_SIZE(res));
     lstrcatW(buf, xmlview_xmlW);
 
     if(!pCreateURLMoniker) {




More information about the wine-cvs mailing list