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

Alexandre Julliard julliard at winehq.org
Mon Jun 11 13:10:50 CDT 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri Jun  8 22:19:06 2018 +0200

oleacc/tests: Use the available ARRAY_SIZE() macro.

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

---

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

diff --git a/dlls/oleacc/tests/main.c b/dlls/oleacc/tests/main.c
index 7a0737c..c62fa79 100644
--- a/dlls/oleacc/tests/main.c
+++ b/dlls/oleacc/tests/main.c
@@ -410,7 +410,7 @@ static void test_getroletext(void)
         memset(buff2W, 0, sizeof(buff2W));
 
         ret = GetRoleTextW(role, NULL, 0);
-        GetRoleTextW(role, buff2W, sizeof(buff2W)/sizeof(WCHAR));
+        GetRoleTextW(role, buff2W, ARRAY_SIZE(buff2W));
         ok(ret == lstrlenW(buff2W),
            "GetRoleTextW: returned length doesn't match returned buffer for role %d\n", role);
     }




More information about the wine-cvs mailing list