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

windows.media.speech: Force debug info in critical sections.

parent 84cb3155
......@@ -366,7 +366,7 @@ HRESULT async_action_create( IInspectable *invoker, async_action_callback callba
if (invoker) IInspectable_AddRef((impl->invoker = invoker));
InitializeCriticalSection(&impl->cs);
InitializeCriticalSectionEx(&impl->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
impl->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": async_action.cs");
/* AddRef to keep the obj alive in the callback. */
......@@ -745,7 +745,7 @@ HRESULT async_operation_inspectable_create( const GUID *iid,
if (invoker) IInspectable_AddRef((impl->invoker = invoker));
InitializeCriticalSection(&impl->cs);
InitializeCriticalSectionEx(&impl->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
impl->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": async_operation.cs");
/* AddRef to keep the obj alive in the callback. */
......
......@@ -1126,7 +1126,7 @@ static HRESULT WINAPI recognizer_factory_Create( ISpeechRecognizerFactory *iface
if (FAILED(hr = recognizer_factory_create_audio_capture(session)))
goto error;
InitializeCriticalSection(&session->cs);
InitializeCriticalSectionEx(&session->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
session->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": recognition_session.cs");
/* Init ISpeechRecognizer */
......
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