Commit 7ef15a60 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Adds debug name to remaining critical sections.

parent e82dfab2
......@@ -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);
......
......@@ -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,
......
......@@ -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);
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment