windows.media.speech: Force debug info in critical sections.
This commit is contained in:
parent
84cb31556a
commit
d30dafa14d
2 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue