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

Alexandre Julliard julliard at winehq.org
Mon Nov 12 16:26:56 CST 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Nov 12 20:29:05 2018 +0100

atl100/tests: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/atl100/tests/atl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c
index eecf079..bdd3c57 100644
--- a/dlls/atl100/tests/atl.c
+++ b/dlls/atl100/tests/atl.c
@@ -304,8 +304,8 @@ static void test_typelib(void)
     FreeLibrary(inst);
 
     len = SysStringLen(path);
-    ok(len > sizeof(scrrun_dll_suffixW)/sizeof(WCHAR)
-       && lstrcmpiW(path+len-sizeof(scrrun_dll_suffixW)/sizeof(WCHAR), scrrun_dll_suffixW),
+    ok(len > ARRAY_SIZE(scrrun_dll_suffixW)
+       && lstrcmpiW(path+len-ARRAY_SIZE(scrrun_dll_suffixW), scrrun_dll_suffixW),
        "unexpected path %s\n", wine_dbgstr_w(path));
     SysFreeString(path);
     ok(typelib != NULL, "typelib == NULL\n");
@@ -320,8 +320,8 @@ static void test_typelib(void)
     FreeLibrary(inst);
 
     len = SysStringLen(path);
-    ok(len > sizeof(mshtml_tlb_suffixW)/sizeof(WCHAR)
-       && lstrcmpiW(path+len-sizeof(mshtml_tlb_suffixW)/sizeof(WCHAR), mshtml_tlb_suffixW),
+    ok(len > ARRAY_SIZE(mshtml_tlb_suffixW)
+       && lstrcmpiW(path+len-ARRAY_SIZE(mshtml_tlb_suffixW), mshtml_tlb_suffixW),
        "unexpected path %s\n", wine_dbgstr_w(path));
     SysFreeString(path);
     ok(typelib != NULL, "typelib == NULL\n");




More information about the wine-cvs mailing list