mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-20 10:18:13 +00:00
windows: Fix calls to CoCreateInstance() so last parameter is a LPVOID *.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user