From: Brendan Shanks bshanks@codeweavers.com
--- dlls/dsound/capture.c | 2 ++ dlls/dsound/mixer.c | 1 + 2 files changed, 3 insertions(+)
diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 2c3dd83e86d..6ddae8286cd 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -951,6 +951,8 @@ static DWORD WINAPI DSOUND_capture_thread(void *user) DWORD ret, wait_ms; REFERENCE_TIME period;
+ SetThreadDescription(GetCurrentThread(), L"wine_dsound_capture"); + hr = IAudioClient_GetDevicePeriod(buffer->device->client, &period, NULL); if(FAILED(hr)){ WARN("GetDevicePeriod failed: %08lx\n", hr); diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index 05b2bfbf8c3..5d5c4981fa2 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -783,6 +783,7 @@ DWORD CALLBACK DSOUND_mixthread(void *p) { DirectSoundDevice *dev = p; TRACE("(%p)\n", dev); + SetThreadDescription(GetCurrentThread(), L"wine_dsound_mixer");
while (dev->ref) { DWORD ret;