From 3e610753a8ce0b2f27f78baee1f160c4ae5c2f7d Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 8 Aug 2018 11:30:07 +0200 Subject: [PATCH] joy.cpl: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/joy.cpl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c index 51c2fdfdc9b..32dfad0eb5c 100644 --- a/dlls/joy.cpl/main.c +++ b/dlls/joy.cpl/main.c @@ -416,7 +416,7 @@ static DWORD WINAPI input_thread(void *param) axes_pos[2][1] = state.lRz; /* Set pov values */ - for (j = 0; j < sizeof(pov_val)/sizeof(pov_val[0]); j++) + for (j = 0; j < ARRAY_SIZE(pov_val); j++) { if (state.rgdwPOV[0] == pov_val[j]) {