windows: Fix calls to CoCreateInstance() so last parameter is a LPVOID *.

This commit is contained in:
Ryan C. Gordon 2020-05-20 16:58:33 -04:00
parent 539125b895
commit 68777406e5
4 changed files with 4 additions and 4 deletions

View file

@ -351,7 +351,7 @@ SDL_WINDOWS_SensorInit(void)
SDL_windowscoinit = SDL_TRUE;
}
hr = CoCreateInstance(&CLSID_SensorManager, NULL, CLSCTX_INPROC_SERVER, &IID_SensorManager, &SDL_sensor_manager);
hr = CoCreateInstance(&CLSID_SensorManager, NULL, CLSCTX_INPROC_SERVER, &IID_SensorManager, (LPVOID *) &SDL_sensor_manager);
if (FAILED(hr)) {
return SDL_SetError("Couldn't create the sensor manager: 0x%.4x", hr);
}