mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 09:14:10 +00:00
sapi: Call CoInitializeEx/CoUninitialize in async_worker.
This commit is contained in:
parent
f54646d7a9
commit
679e3a9d00
|
@ -71,6 +71,7 @@ static void CALLBACK async_worker(TP_CALLBACK_INSTANCE *instance, void *ctx)
|
|||
HANDLE handles[2] = { queue->cancel, queue->wait };
|
||||
DWORD ret;
|
||||
|
||||
CoInitializeEx(NULL, COINIT_MULTITHREADED);
|
||||
SetEvent(queue->ready);
|
||||
|
||||
for (;;)
|
||||
|
@ -99,6 +100,7 @@ static void CALLBACK async_worker(TP_CALLBACK_INSTANCE *instance, void *ctx)
|
|||
|
||||
cancel:
|
||||
async_empty_queue(queue);
|
||||
CoUninitialize();
|
||||
TRACE("cancelled.\n");
|
||||
SetEvent(queue->ready);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue