Do the first CoInitializeEx on the main thread instead of the EmuThread (WASAPI). Fixes #7334

This commit is contained in:
Henrik Rydgard committed 2015-01-15 22:33:20 +01:00
1 parent c8c80c0ced
commit 8a574e5cd2
4 files changed
+4 -5

No files matched your search

+3
View File
@@ -359,6 +359,8 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
{
setCurrentThreadName("Main");
CoInitializeEx(NULL, COINIT_MULTITHREADED);
// Windows Vista and above: alert Windows that PPSSPP is DPI aware,
// so that we don't flicker in fullscreen on some PCs.
MakePPSSPPDPIAware();
@@ -616,5 +618,6 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
if (g_Config.bRestartRequired) {
W32Util::ExitAndRestart();
}
CoUninitialize();
return 0;
}