1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

dsound: Force debug info in critical sections.

This commit is contained in:
Paul Gofman 2024-02-20 17:52:59 -06:00 committed by Alexandre Julliard
parent 8268d4e017
commit c63a990091
2 changed files with 2 additions and 2 deletions

View file

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

View file

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