windows: SDL_IMMDevice needed more deinit code from the Win32 path.

Fixes #5919
This commit is contained in:
Ethan Lee 2022-07-15 09:46:53 -04:00
parent 37aecda2c1
commit fff34f6304
4 changed files with 32 additions and 31 deletions

View file

@ -68,8 +68,6 @@ WASAPI_PlatformInit(void)
void
WASAPI_PlatformDeinit(void)
{
SDL_IMMDevice_Quit();
if (libavrt) {
FreeLibrary(libavrt);
libavrt = NULL;
@ -78,7 +76,7 @@ WASAPI_PlatformDeinit(void)
pAvSetMmThreadCharacteristicsW = NULL;
pAvRevertMmThreadCharacteristics = NULL;
WIN_CoUninitialize();
SDL_IMMDevice_Quit();
}
void