Module: wine
Branch: stable
Commit: cab336873547aa5dfe3276abc81097f23d537562
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cab336873547aa5dfe3276abc…
Author: Aric Stewart <aric(a)codeweavers.com>
Date: Wed Mar 2 11:27:52 2016 -0600
winejoystick.drv: Initialize unhandled dwPOV to JOY_POVCENTERED.
This is a fix for broken applications that do not bother to check the flags
to see if JOY_RETURNPOV is set and instead blindly read dwPOV. The previous
value of 0 resulted in the POV appearing to be constantly in the UP position.
Signed-off-by: Aric Stewart <aric(a)codeweavers.com>
Signed-off-by: Ken Thomases <ken(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
(cherry picked from commit ae2ead16ce3dfe9d906390a092ebda9d1a3d3354)
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org>
---
dlls/winejoystick.drv/joystick_osx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winejoystick.drv/joystick_osx.c b/dlls/winejoystick.drv/joystick_osx.c
index da45450..72552d0 100644
--- a/dlls/winejoystick.drv/joystick_osx.c
+++ b/dlls/winejoystick.drv/joystick_osx.c
@@ -715,7 +715,7 @@ LRESULT driver_joyGetPosEx(DWORD_PTR device_id, JOYINFOEX* info)
}
else
{
- info->dwPOV = 0;
+ info->dwPOV = JOY_POVCENTERED;
info->dwFlags &= ~JOY_RETURNPOV;
}
}