oleacc/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
707882a6f2
commit
1144f09229
|
@ -410,7 +410,7 @@ static void test_getroletext(void)
|
||||||
memset(buff2W, 0, sizeof(buff2W));
|
memset(buff2W, 0, sizeof(buff2W));
|
||||||
|
|
||||||
ret = GetRoleTextW(role, NULL, 0);
|
ret = GetRoleTextW(role, NULL, 0);
|
||||||
GetRoleTextW(role, buff2W, sizeof(buff2W)/sizeof(WCHAR));
|
GetRoleTextW(role, buff2W, ARRAY_SIZE(buff2W));
|
||||||
ok(ret == lstrlenW(buff2W),
|
ok(ret == lstrlenW(buff2W),
|
||||||
"GetRoleTextW: returned length doesn't match returned buffer for role %d\n", role);
|
"GetRoleTextW: returned length doesn't match returned buffer for role %d\n", role);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue