Gurmail Bassi : dinput: Use a properly initialized format in SetProperty.
Module: wine Branch: master Commit: c34b7b13134e2479d3e25e8f8995ff5a8abd2983 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c34b7b13134e2479d3e25e8f89... Author: Gurmail Bassi <Gurmail.Bassi(a)mottmac.com> Date: Tue Jun 4 21:38:38 2013 +0100 dinput: Use a properly initialized format in SetProperty. --- 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 b929c05..ce267e6 100644 --- a/dlls/dinput/joystick.c +++ b/dlls/dinput/joystick.c @@ -301,7 +301,7 @@ HRESULT WINAPI JoystickWGenericImpl_SetProperty(LPDIRECTINPUTDEVICE8W iface, REF remap_props.lMin = pr->lMin; remap_props.lMax = pr->lMax; - switch (This->base.data_format.offsets[i]) { + switch (This->base.data_format.wine_df->rgodf[i].dwOfs) { case DIJOFS_X : This->js.lX = joystick_map_axis(&remap_props, This->js.lX); break; case DIJOFS_Y : This->js.lY = joystick_map_axis(&remap_props, This->js.lY); break; case DIJOFS_Z : This->js.lZ = joystick_map_axis(&remap_props, This->js.lZ); break;
participants (1)
-
Alexandre Julliard