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( ...@@ -1191,6 +1191,7 @@ HRESULT WINAPI IDirectSoundBufferImpl_Create(
DSOUND_RecalcVolPan(&(dsb->volpan)); DSOUND_RecalcVolPan(&(dsb->volpan));
InitializeCriticalSection(&(dsb->lock)); InitializeCriticalSection(&(dsb->lock));
dsb->lock.DebugInfo->Spare[1] = (DWORD)"DSOUNDBUFFER_lock";
/* register buffer */ /* register buffer */
RtlAcquireResourceExclusive(&(ds->lock), TRUE); RtlAcquireResourceExclusive(&(ds->lock), TRUE);
......
...@@ -147,6 +147,7 @@ DirectSoundCaptureCreate8( ...@@ -147,6 +147,7 @@ DirectSoundCaptureCreate8(
This->state = STATE_STOPPED; This->state = STATE_STOPPED;
InitializeCriticalSection( &(This->lock) ); InitializeCriticalSection( &(This->lock) );
This->lock.DebugInfo->Spare[1] = (DWORD)"DSCAPTURE_lock";
This->lpVtbl = &dscvt; This->lpVtbl = &dscvt;
dsound_capture = This; dsound_capture = This;
...@@ -1746,6 +1747,7 @@ DirectSoundFullDuplexCreate( ...@@ -1746,6 +1747,7 @@ DirectSoundFullDuplexCreate(
This->lpVtbl = &dsfdvt; This->lpVtbl = &dsfdvt;
InitializeCriticalSection( &(This->lock) ); InitializeCriticalSection( &(This->lock) );
This->lock.DebugInfo->Spare[1] = (DWORD)"DSDUPLEX_lock";
hres = IDirectSoundFullDuplexImpl_Initialize( (LPDIRECTSOUNDFULLDUPLEX)This, hres = IDirectSoundFullDuplexImpl_Initialize( (LPDIRECTSOUNDFULLDUPLEX)This,
pcGuidCaptureDevice, pcGuidRenderDevice, pcGuidCaptureDevice, pcGuidRenderDevice,
......
...@@ -555,6 +555,7 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer( ...@@ -555,6 +555,7 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
dsb->dsb = NULL; dsb->dsb = NULL;
memcpy(&(dsb->wfx), &(pdsb->wfx), sizeof(dsb->wfx)); memcpy(&(dsb->wfx), &(pdsb->wfx), sizeof(dsb->wfx));
InitializeCriticalSection(&(dsb->lock)); InitializeCriticalSection(&(dsb->lock));
dsb->lock.DebugInfo->Spare[1] = (DWORD)"DSOUNDBUFFER_lock";
/* register buffer */ /* register buffer */
RtlAcquireResourceExclusive(&(This->lock), TRUE); 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