Aric Stewart : winejoystick.drv: Initialize unhandled dwPOV to JOY_POVCENTERED.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 12 06:45:24 CDT 2016


Module: wine
Branch: stable
Commit: cab336873547aa5dfe3276abc81097f23d537562
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cab336873547aa5dfe3276abc81097f23d537562

Author: Aric Stewart <aric at 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 at codeweavers.com>
Signed-off-by: Ken Thomases <ken at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit ae2ead16ce3dfe9d906390a092ebda9d1a3d3354)
Signed-off-by: Michael Stefaniuc <mstefani at 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;
         }
     }




More information about the wine-cvs mailing list