comparison src/haptic/win32/SDL_syshaptic.c @ 2614:3ee319d9800a gsoc2008_force_feedback

Fixed another typo.
author Edgar Simo <bobbens@gmail.com>
date Wed, 06 Aug 2008 07:54:33 +0000
parents b081c72b739c
children 088907e9a2bb
comparison
equal deleted inserted replaced
2613:b081c72b739c 2614:3ee319d9800a
175 /* Copy the instance over, useful for creating devices. */ 175 /* Copy the instance over, useful for creating devices. */
176 SDL_memcpy(&SDL_hapticlist[SDL_numhaptics].instance, pdidInstance, 176 SDL_memcpy(&SDL_hapticlist[SDL_numhaptics].instance, pdidInstance,
177 sizeof(DIDEVICEINSTANCE)); 177 sizeof(DIDEVICEINSTANCE));
178 178
179 /* Open the device */ 179 /* Open the device */
180 ret = IDirectInput_CreateDevice( dinput, &pdidInstance.guidInstance, 180 ret = IDirectInput_CreateDevice( dinput, &pdidInstance->guidInstance,
181 &device, NULL ); 181 &device, NULL );
182 if (FAILED(ret)) { 182 if (FAILED(ret)) {
183 /* DI_SetError("Creating DirectInput device",ret); */ 183 /* DI_SetError("Creating DirectInput device",ret); */
184 return DIENUM_CONTINUE; 184 return DIENUM_CONTINUE;
185 } 185 }