dsound: Force debug info in critical sections.
This commit is contained in:
parent
8268d4e017
commit
c63a990091
2 changed files with 2 additions and 2 deletions
|
@ -832,7 +832,7 @@ static HRESULT DirectSoundCaptureDevice_Create(
|
|||
device->ref = 1;
|
||||
device->state = STATE_STOPPED;
|
||||
|
||||
InitializeCriticalSection( &(device->lock) );
|
||||
InitializeCriticalSectionEx( &(device->lock), 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
|
||||
device->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": DirectSoundCaptureDevice.lock");
|
||||
|
||||
*ppDevice = device;
|
||||
|
|
|
@ -177,7 +177,7 @@ static HRESULT DirectSoundDevice_Create(DirectSoundDevice ** ppDevice)
|
|||
device->primary_pwfx->nAvgBytesPerSec = device->primary_pwfx->nSamplesPerSec * device->primary_pwfx->nBlockAlign;
|
||||
device->primary_pwfx->cbSize = 0;
|
||||
|
||||
InitializeCriticalSection(&(device->mixlock));
|
||||
InitializeCriticalSectionEx(&(device->mixlock), 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||
device->mixlock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": DirectSoundDevice.mixlock");
|
||||
|
||||
InitializeSRWLock(&device->buffer_list_lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue