We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7c798 commit 52b65edCopy full SHA for 52b65ed
src/queue.c
@@ -6264,8 +6264,12 @@ _dispatch_worker_thread(void *context)
6264
static unsigned WINAPI
6265
_dispatch_worker_thread_thunk(LPVOID lpParameter)
6266
{
6267
- _dispatch_worker_thread(lpParameter);
6268
- return 0;
+ HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE);
+ if (SUCCEEDED(hr)) {
6269
+ _dispatch_worker_thread(lpParameter);
6270
+ CoUninitialize();
6271
+ }
6272
+ return 0;
6273
}
6274
#endif // defined(_WIN32)
6275
#endif // DISPATCH_USE_PTHREAD_POOL
0 commit comments