mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 11:17:19 +00:00
joy.cpl: Use the 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
284e661966
commit
3e610753a8
|
@ -416,7 +416,7 @@ static DWORD WINAPI input_thread(void *param)
|
||||||
axes_pos[2][1] = state.lRz;
|
axes_pos[2][1] = state.lRz;
|
||||||
|
|
||||||
/* Set pov values */
|
/* 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])
|
if (state.rgdwPOV[0] == pov_val[j])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue