Workaround for bug in Microsoft WGI support

Fixes https://github.com/libsdl-org/SDL/issues/5270
This commit is contained in:
Sam Lantinga
2022-03-17 17:10:40 -07:00
parent d406278513
commit b22ce2b5a8
5 changed files with 49 additions and 52 deletions

View File

@@ -256,8 +256,7 @@ SDL_CleanupDeviceNotification(SDL_DeviceNotificationData *data)
UnregisterClass(data->wincl.lpszClassName, data->wincl.hInstance);
if (data->coinitialized == S_OK) {
/* Workaround for CoUninitialize() crash in NotifyInitializeSpied() */
/*WIN_CoUninitialize();*/
WIN_CoUninitialize();
}
}