msvcr110/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
551ff6e966
commit
51560bb9e5
|
@ -61,7 +61,7 @@ static void test_setlocale(void)
|
||||||
"uz-Latn-uz",
|
"uz-Latn-uz",
|
||||||
};
|
};
|
||||||
|
|
||||||
for(i=0; i<sizeof(names)/sizeof(*names); i++) {
|
for(i=0; i<ARRAY_SIZE(names); i++) {
|
||||||
ret = p_setlocale(LC_ALL, names[i]);
|
ret = p_setlocale(LC_ALL, names[i]);
|
||||||
ok(ret != NULL, "expected success, but got NULL\n");
|
ok(ret != NULL, "expected success, but got NULL\n");
|
||||||
ok(!strcmp(ret, names[i]), "expected %s, got %s\n", names[i], ret);
|
ok(!strcmp(ret, names[i]), "expected %s, got %s\n", names[i], ret);
|
||||||
|
|
Loading…
Reference in New Issue