[PATCH] joy.cpl: Use the ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Wed Aug 8 04:30:07 CDT 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 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 51c2fdfdc9..32dfad0eb5 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])
             {
-- 
2.14.4




More information about the wine-devel mailing list