Adds debug name to remaining critical sections.
This commit is contained in:
parent
e82dfab20f
commit
7ef15a607c
|
@ -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);
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue