Commit 8857df96 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

urlmon: Force debug info in critical sections.

parent ec666970
...@@ -1474,7 +1474,7 @@ static HRESULT Binding_Create(IMoniker *mon, Binding *binding_ctx, IUri *uri, IB ...@@ -1474,7 +1474,7 @@ static HRESULT Binding_Create(IMoniker *mon, Binding *binding_ctx, IUri *uri, IB
ret->bindinfo.cbSize = sizeof(BINDINFO); ret->bindinfo.cbSize = sizeof(BINDINFO);
InitializeCriticalSection(&ret->section); InitializeCriticalSectionEx(&ret->section, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
ret->section.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": Binding.section"); ret->section.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": Binding.section");
hres = get_callback(pbc, &ret->callback); hres = get_callback(pbc, &ret->callback);
......
...@@ -1468,7 +1468,7 @@ HRESULT create_binding_protocol(BindProtocol **protocol) ...@@ -1468,7 +1468,7 @@ HRESULT create_binding_protocol(BindProtocol **protocol)
ret->notif_hwnd = get_notif_hwnd(); ret->notif_hwnd = get_notif_hwnd();
ret->protocol_handler = &ret->default_protocol_handler.IInternetProtocol_iface; ret->protocol_handler = &ret->default_protocol_handler.IInternetProtocol_iface;
ret->protocol_sink_handler = &ret->default_protocol_handler.IInternetProtocolSink_iface; ret->protocol_sink_handler = &ret->default_protocol_handler.IInternetProtocolSink_iface;
InitializeCriticalSection(&ret->section); InitializeCriticalSectionEx(&ret->section, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
ret->section.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": BindProtocol.section"); ret->section.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": BindProtocol.section");
URLMON_LockModule(); URLMON_LockModule();
......
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