Commit 5e3cc883 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winhttp: Force debug info in critical sections.

parent 7c7b2e8e
......@@ -6096,7 +6096,7 @@ HRESULT WinHttpRequest_create( void **obj )
if (!(request = calloc( 1, sizeof(*request) ))) return E_OUTOFMEMORY;
request->IWinHttpRequest_iface.lpVtbl = &winhttp_request_vtbl;
request->refs = 1;
InitializeCriticalSection( &request->cs );
InitializeCriticalSectionEx( &request->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
request->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": winhttp_request.cs");
initialize_request( request );
......
......@@ -319,7 +319,7 @@ HINTERNET WINAPI WinHttpOpen( LPCWSTR agent, DWORD access, LPCWSTR proxy, LPCWST
session->websocket_receive_buffer_size = 32768;
session->websocket_send_buffer_size = 32768;
list_init( &session->cookie_cache );
InitializeCriticalSection( &session->cs );
InitializeCriticalSectionEx( &session->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
session->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": session.cs");
if (agent && !(session->agent = wcsdup( agent ))) goto end;
......
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