Commit 17f94ab5 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

dmsynth: Force debug info in critical sections.

parent bbe1c753
...@@ -1992,7 +1992,7 @@ HRESULT synth_create(IUnknown **ret_iface) ...@@ -1992,7 +1992,7 @@ HRESULT synth_create(IUnknown **ret_iface)
goto failed; goto failed;
fluid_sfont_set_data(obj->fluid_sfont, obj); fluid_sfont_set_data(obj->fluid_sfont, obj);
InitializeCriticalSection(&obj->cs); InitializeCriticalSectionEx(&obj->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
obj->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs"); obj->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs");
TRACE("Created DirectMusicSynth %p\n", obj); TRACE("Created DirectMusicSynth %p\n", obj);
......
...@@ -754,7 +754,7 @@ HRESULT synth_sink_create(IUnknown **ret_iface) ...@@ -754,7 +754,7 @@ HRESULT synth_sink_create(IUnknown **ret_iface)
obj->ref = 1; obj->ref = 1;
obj->stop_event = CreateEventW(NULL, FALSE, FALSE, NULL); obj->stop_event = CreateEventW(NULL, FALSE, FALSE, NULL);
InitializeCriticalSection(&obj->cs); InitializeCriticalSectionEx(&obj->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
obj->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs"); obj->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs");
TRACE("Created DirectMusicSynthSink %p\n", obj); TRACE("Created DirectMusicSynthSink %p\n", obj);
......
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