src/joystick/windows/SDL_dinputjoystick.c
changeset 13838 02e41b30186f
parent 13778 6c6a14452dcf
child 13914 348d0896fc9e
equal deleted inserted replaced
13837:c18c3084bd77 13838:02e41b30186f
   507     }
   507     }
   508 
   508 
   509     coinitialized = SDL_TRUE;
   509     coinitialized = SDL_TRUE;
   510 
   510 
   511     result = CoCreateInstance(&CLSID_DirectInput8, NULL, CLSCTX_INPROC_SERVER,
   511     result = CoCreateInstance(&CLSID_DirectInput8, NULL, CLSCTX_INPROC_SERVER,
   512         &IID_IDirectInput8, (LPVOID)&dinput);
   512         &IID_IDirectInput8, (LPVOID *)&dinput);
   513 
   513 
   514     if (FAILED(result)) {
   514     if (FAILED(result)) {
   515         return SetDIerror("CoCreateInstance", result);
   515         return SetDIerror("CoCreateInstance", result);
   516     }
   516     }
   517 
   517