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

quartz: Force debug info in critical sections.

parent b1a61e74
...@@ -422,7 +422,7 @@ HRESULT async_reader_create(IUnknown *outer, IUnknown **out) ...@@ -422,7 +422,7 @@ HRESULT async_reader_create(IUnknown *outer, IUnknown **out)
object->IFileSourceFilter_iface.lpVtbl = &FileSource_Vtbl; object->IFileSourceFilter_iface.lpVtbl = &FileSource_Vtbl;
object->IAsyncReader_iface.lpVtbl = &FileAsyncReader_Vtbl; object->IAsyncReader_iface.lpVtbl = &FileAsyncReader_Vtbl;
InitializeCriticalSection(&object->sample_cs); InitializeCriticalSectionEx(&object->sample_cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->sample_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": FileAsyncReader.sample_cs"); object->sample_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": FileAsyncReader.sample_cs");
InitializeConditionVariable(&object->sample_cv); InitializeConditionVariable(&object->sample_cv);
object->port = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); object->port = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0);
......
...@@ -5704,9 +5704,9 @@ static HRESULT filter_graph_common_create(IUnknown *outer, IUnknown **out, BOOL ...@@ -5704,9 +5704,9 @@ static HRESULT filter_graph_common_create(IUnknown *outer, IUnknown **out, BOOL
return hr; return hr;
} }
InitializeCriticalSection(&object->cs); InitializeCriticalSectionEx(&object->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": filter_graph.cs"); object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": filter_graph.cs");
InitializeCriticalSection(&object->event_cs); InitializeCriticalSectionEx(&object->event_cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->event_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": filter_graph.event_cs"); object->event_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": filter_graph.event_cs");
object->defaultclock = TRUE; object->defaultclock = TRUE;
......
...@@ -920,7 +920,7 @@ HRESULT mem_allocator_create(IUnknown *lpUnkOuter, IUnknown **out) ...@@ -920,7 +920,7 @@ HRESULT mem_allocator_create(IUnknown *lpUnkOuter, IUnknown **out)
if (!(pMemAlloc = CoTaskMemAlloc(sizeof(*pMemAlloc)))) if (!(pMemAlloc = CoTaskMemAlloc(sizeof(*pMemAlloc))))
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
InitializeCriticalSection(&pMemAlloc->csState); InitializeCriticalSectionEx(&pMemAlloc->csState, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
pMemAlloc->csState.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": StdMemAllocator.csState"); pMemAlloc->csState.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": StdMemAllocator.csState");
pMemAlloc->pMemory = NULL; pMemAlloc->pMemory = NULL;
......
...@@ -341,7 +341,7 @@ HRESULT system_clock_create(IUnknown *outer, IUnknown **out) ...@@ -341,7 +341,7 @@ HRESULT system_clock_create(IUnknown *outer, IUnknown **out)
object->outer_unk = outer ? outer : &object->IUnknown_inner; object->outer_unk = outer ? outer : &object->IUnknown_inner;
object->refcount = 1; object->refcount = 1;
list_init(&object->sinks); list_init(&object->sinks);
InitializeCriticalSection(&object->cs); InitializeCriticalSectionEx(&object->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": SystemClockImpl.cs"); object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": SystemClockImpl.cs");
TRACE("Created system clock %p.\n", object); TRACE("Created system clock %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