[OLEACC_WINETEST] Sync with Wine Staging 4.0. CORE-15682
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 29 Jan 2019 12:17:10 +0000 (13:17 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 29 Jan 2019 12:17:10 +0000 (13:17 +0100)
modules/rostests/winetests/oleacc/main.c

index 7a0737c..c62fa79 100644 (file)
@@ -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);
     }