xinput/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:
Michael Stefaniuc 2018-05-30 01:15:34 +02:00 committed by Alexandre Julliard
parent 6ff4365fb3
commit 4fbd3a7c3a
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ START_TEST(xinput)
void *pXInputGetStateEx_Ordinal; void *pXInputGetStateEx_Ordinal;
int i; int i;
for (i = 0; i < sizeof(libs) / sizeof(libs[0]); i++) for (i = 0; i < ARRAY_SIZE(libs); i++)
{ {
hXinput = LoadLibraryA( libs[i].name ); hXinput = LoadLibraryA( libs[i].name );