Commit c63a9900 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

dsound: Force debug info in critical sections.

parent 8268d4e0
...@@ -832,7 +832,7 @@ static HRESULT DirectSoundCaptureDevice_Create( ...@@ -832,7 +832,7 @@ static HRESULT DirectSoundCaptureDevice_Create(
device->ref = 1; device->ref = 1;
device->state = STATE_STOPPED; 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"); device->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": DirectSoundCaptureDevice.lock");
*ppDevice = device; *ppDevice = device;
......
...@@ -177,7 +177,7 @@ static HRESULT DirectSoundDevice_Create(DirectSoundDevice ** ppDevice) ...@@ -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->nAvgBytesPerSec = device->primary_pwfx->nSamplesPerSec * device->primary_pwfx->nBlockAlign;
device->primary_pwfx->cbSize = 0; 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"); device->mixlock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": DirectSoundDevice.mixlock");
InitializeSRWLock(&device->buffer_list_lock); InitializeSRWLock(&device->buffer_list_lock);
......
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