src/haptic/win32/SDL_syshaptic.c
changeset 3013 8cc00819c8d6
parent 3011 8f4ed5ec2b06
--- a/src/haptic/win32/SDL_syshaptic.c	Sat Jan 10 18:32:24 2009 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Sat Jan 10 21:50:26 2009 +0000
@@ -212,8 +212,8 @@
     /* Get capabilities. */
     SDL_hapticlist[SDL_numhaptics].capabilities.dwSize = sizeof(DIDEVCAPS);
     ret = IDirectInputDevice_GetCapabilities(device,
-                                             &SDL_hapticlist
-                                             [SDL_numhaptics].capabilities);
+                                             &SDL_hapticlist[SDL_numhaptics].
+                                             capabilities);
     if (FAILED(ret)) {
         /* DI_SetError("Getting device capabilities",ret); */
         IDirectInputDevice_Release(device);
@@ -332,8 +332,8 @@
     /* Now get the IDirectInputDevice2 interface, instead. */
     ret = IDirectInputDevice_QueryInterface(device,
                                             &IID_IDirectInputDevice2,
-                                            (LPVOID *) & haptic->
-                                            hwdata->device);
+                                            (LPVOID *) & haptic->hwdata->
+                                            device);
     /* Done with the temporary one now. */
     IDirectInputDevice_Release(device);
     if (FAILED(ret)) {
@@ -500,8 +500,8 @@
 SDL_SYS_HapticOpen(SDL_Haptic * haptic)
 {
     return SDL_SYS_HapticOpenFromInstance(haptic,
-                                          SDL_hapticlist[haptic->
-                                                         index].instance);
+                                          SDL_hapticlist[haptic->index].
+                                          instance);
 }