src/haptic/win32/SDL_syshaptic.c
changeset 2761 0c544c2eff77
parent 2760 02aa80d7905f
child 2786 6bacfecbf27e
--- a/src/haptic/win32/SDL_syshaptic.c	Mon Sep 15 07:34:36 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Mon Sep 15 08:41:03 2008 +0000
@@ -154,7 +154,7 @@
     }
 
     ret = CoCreateInstance(&CLSID_DirectInput, NULL, CLSCTX_INPROC_SERVER,
-                           &IID_IDirectInput, &dinput);
+                           &IID_IDirectInput, (LPVOID)&dinput);
     if (FAILED(ret)) {
         DI_SetError("CoCreateInstance", ret);
         return -1;