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