mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
winhttp: Force debug info in critical sections.
This commit is contained in:
parent
7c7b2e8e7e
commit
5e3cc88326
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue