Commit 02b68a0a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

qcap: Force debug info in critical sections.

parent 6e1e52cb
......@@ -824,7 +824,7 @@ HRESULT audio_record_create(IUnknown *outer, IUnknown **out)
object->state = State_Stopped;
InitializeConditionVariable(&object->state_cv);
InitializeCriticalSection(&object->state_cs);
InitializeCriticalSectionEx(&object->state_cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->state_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": audio_record.state_cs");
TRACE("Created audio recorder %p.\n", object);
......
......@@ -62,7 +62,7 @@ HRESULT capture_graph_create(IUnknown *outer, IUnknown **out)
object->ICaptureGraphBuilder_iface.lpVtbl = &builder_Vtbl;
object->ref = 1;
object->mygraph = NULL;
InitializeCriticalSection(&object->csFilter);
InitializeCriticalSectionEx(&object->csFilter, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->csFilter.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": CaptureGraphImpl.csFilter");
TRACE("Created capture graph builder %p.\n", object);
......
......@@ -904,7 +904,7 @@ HRESULT vfw_capture_create(IUnknown *outer, IUnknown **out)
object->state = State_Stopped;
InitializeConditionVariable(&object->state_cv);
InitializeCriticalSection(&object->state_cs);
InitializeCriticalSectionEx(&object->state_cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->state_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": vfw_capture.state_cs");
TRACE("Created VFW capture filter %p.\n", object);
......
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