diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 310d2c30a17..37a14a7865f 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -1191,6 +1191,7 @@ HRESULT WINAPI IDirectSoundBufferImpl_Create( DSOUND_RecalcVolPan(&(dsb->volpan)); InitializeCriticalSection(&(dsb->lock)); + dsb->lock.DebugInfo->Spare[1] = (DWORD)"DSOUNDBUFFER_lock"; /* register buffer */ RtlAcquireResourceExclusive(&(ds->lock), TRUE); diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index b8c526c19e1..da0db2cab30 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -147,6 +147,7 @@ DirectSoundCaptureCreate8( This->state = STATE_STOPPED; InitializeCriticalSection( &(This->lock) ); + This->lock.DebugInfo->Spare[1] = (DWORD)"DSCAPTURE_lock"; This->lpVtbl = &dscvt; dsound_capture = This; @@ -1746,6 +1747,7 @@ DirectSoundFullDuplexCreate( This->lpVtbl = &dsfdvt; InitializeCriticalSection( &(This->lock) ); + This->lock.DebugInfo->Spare[1] = (DWORD)"DSDUPLEX_lock"; hres = IDirectSoundFullDuplexImpl_Initialize( (LPDIRECTSOUNDFULLDUPLEX)This, pcGuidCaptureDevice, pcGuidRenderDevice, diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index 02fcd6f83a3..77e01cb6cf5 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -555,6 +555,7 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer( dsb->dsb = NULL; memcpy(&(dsb->wfx), &(pdsb->wfx), sizeof(dsb->wfx)); InitializeCriticalSection(&(dsb->lock)); + dsb->lock.DebugInfo->Spare[1] = (DWORD)"DSOUNDBUFFER_lock"; /* register buffer */ RtlAcquireResourceExclusive(&(This->lock), TRUE); {