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

+1 -1
View File
@@ -285,7 +285,7 @@ void WindowsHost::UpdateConsolePosition()
HRESULT CreateLink(LPCWSTR lpszPathObj, LPCWSTR lpszArguments, LPCWSTR lpszPathLink, LPCWSTR lpszDesc) {
HRESULT hres;
IShellLink* psl;
CoInitialize(0);
CoInitializeEx(NULL, COINIT_MULTITHREADED);
// Get a pointer to the IShellLink interface. It is assumed that CoInitialize
// has already been called.