Lucas Zawacki : dinput: Search for device objects of the correct type in BuildActionMap.

Alexandre Julliard julliard at winehq.org
Wed Feb 29 14:07:38 CST 2012


Module: wine
Branch: master
Commit: 07f583478e0d5b182dff9dac14fbd96ba30773c9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=07f583478e0d5b182dff9dac14fbd96ba30773c9

Author: Lucas Zawacki <lfzawacki at gmail.com>
Date:   Tue Feb 28 15:22:20 2012 -0300

dinput: Search for device objects of the correct type in BuildActionMap.

---

 dlls/dinput/joystick.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dinput/joystick.c b/dlls/dinput/joystick.c
index 8dd1566..dfcaeb7 100644
--- a/dlls/dinput/joystick.c
+++ b/dlls/dinput/joystick.c
@@ -456,7 +456,7 @@ HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
             if (type & object_types[j])
             {
                 /* Assure that the object exists */
-                LPDIOBJECTDATAFORMAT odf = dataformat_to_odf_by_type(This->base.data_format.wine_df, inst, DIDFT_BUTTON);
+                LPDIOBJECTDATAFORMAT odf = dataformat_to_odf_by_type(This->base.data_format.wine_df, inst, object_types[j]);
 
                 if (odf != NULL)
                 {




More information about the wine-cvs mailing list