[PATCH] msxml3/tests: Use the ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Thu Nov 15 13:42:13 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani 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 dc8ab7d200..53eefcb7e0 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) {
-- 
2.14.5




More information about the wine-devel mailing list