mirror of https://github.com/encounter/SDL.git
Workaround for crash in CoUninitialize()
This commit is contained in:
parent
978fbc3250
commit
9299a3e796
|
@ -1147,7 +1147,8 @@ SDL_DINPUT_JoystickQuit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (coinitialized) {
|
if (coinitialized) {
|
||||||
WIN_CoUninitialize();
|
/* Workaround for CoUninitialize() crash in NotifyInitializeSpied() */
|
||||||
|
/*WIN_CoUninitialize();*/
|
||||||
coinitialized = SDL_FALSE;
|
coinitialized = SDL_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -657,7 +657,8 @@ RAWINPUT_QuitWindowsGamingInput(RAWINPUT_DeviceContext *ctx)
|
||||||
__x_ABI_CWindows_CGaming_CInput_CIGamepadStatics_Release(wgi_state.gamepad_statics);
|
__x_ABI_CWindows_CGaming_CInput_CIGamepadStatics_Release(wgi_state.gamepad_statics);
|
||||||
wgi_state.gamepad_statics = NULL;
|
wgi_state.gamepad_statics = NULL;
|
||||||
}
|
}
|
||||||
WIN_CoUninitialize();
|
/* Workaround for CoUninitialize() crash in NotifyInitializeSpied() */
|
||||||
|
/*WIN_CoUninitialize();*/
|
||||||
wgi_state.initialized = SDL_FALSE;
|
wgi_state.initialized = SDL_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -256,7 +256,8 @@ SDL_CleanupDeviceNotification(SDL_DeviceNotificationData *data)
|
||||||
UnregisterClass(data->wincl.lpszClassName, data->wincl.hInstance);
|
UnregisterClass(data->wincl.lpszClassName, data->wincl.hInstance);
|
||||||
|
|
||||||
if (data->coinitialized == S_OK) {
|
if (data->coinitialized == S_OK) {
|
||||||
WIN_CoUninitialize();
|
/* Workaround for CoUninitialize() crash in NotifyInitializeSpied() */
|
||||||
|
/*WIN_CoUninitialize();*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue