Adds debug name to remaining critical sections.

This commit is contained in:
Robert Reif 2004-08-06 17:30:00 +00:00 committed by Alexandre Julliard
parent e82dfab20f
commit 7ef15a607c
3 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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,

View File

@ -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);
{