comparison src/haptic/win32/SDL_syshaptic.c @ 2761:0c544c2eff77

Almost got this compiling on Cygwin32, just needs DirectInput 7
author Sam Lantinga <slouken@libsdl.org>
date Mon, 15 Sep 2008 08:41:03 +0000
parents 02aa80d7905f
children 6bacfecbf27e
comparison
equal deleted inserted replaced
2760:02aa80d7905f 2761:0c544c2eff77
152 DI_SetError("Coinitialize", ret); 152 DI_SetError("Coinitialize", ret);
153 return -1; 153 return -1;
154 } 154 }
155 155
156 ret = CoCreateInstance(&CLSID_DirectInput, NULL, CLSCTX_INPROC_SERVER, 156 ret = CoCreateInstance(&CLSID_DirectInput, NULL, CLSCTX_INPROC_SERVER,
157 &IID_IDirectInput, &dinput); 157 &IID_IDirectInput, (LPVOID)&dinput);
158 if (FAILED(ret)) { 158 if (FAILED(ret)) {
159 DI_SetError("CoCreateInstance", ret); 159 DI_SetError("CoCreateInstance", ret);
160 return -1; 160 return -1;
161 } 161 }
162 162