mmdevapi: Set the name of internal threads.

This commit is contained in:
Brendan Shanks 2022-10-18 11:37:29 -07:00 committed by Alexandre Julliard
parent fe5989bbd2
commit 7a87da8fab
2 changed files with 4 additions and 0 deletions

View file

@ -1163,6 +1163,8 @@ static DWORD WINAPI notif_thread_proc(void *user)
WCHAR out_name[64], vout_name[64], in_name[64], vin_name[64];
DWORD size;
SetThreadDescription(GetCurrentThread(), L"wine_mmdevapi_notification");
lstrcpyW(reg_key, drv_keyW);
lstrcatW(reg_key, L"\\");
lstrcatW(reg_key, drvs.module_name);

View file

@ -381,6 +381,8 @@ static DWORD WINAPI activate_async_threadproc(void *user)
{
struct activate_async_op *op = user;
SetThreadDescription(GetCurrentThread(), L"wine_mmdevapi_activate_async");
IActivateAudioInterfaceCompletionHandler_ActivateCompleted(op->callback, &op->IActivateAudioInterfaceAsyncOperation_iface);
IActivateAudioInterfaceAsyncOperation_Release(&op->IActivateAudioInterfaceAsyncOperation_iface);