mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Do the first CoInitializeEx on the main thread instead of the EmuThread (WASAPI). Fixes #7334
This commit is contained in:
1 parent
c8c80c0ced
commit
8a574e5cd2
4 files changed
+4
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user