Commit 95e12689 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

webservices: Force debug info in critical sections.

parent c65d0a07
......@@ -252,9 +252,9 @@ static struct channel *alloc_channel(void)
if (!(ret = calloc( 1, size ))) return NULL;
ret->magic = CHANNEL_MAGIC;
InitializeCriticalSection( &ret->cs );
InitializeCriticalSection( &ret->send_q.cs );
InitializeCriticalSection( &ret->recv_q.cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
InitializeCriticalSectionEx( &ret->send_q.cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
InitializeCriticalSectionEx( &ret->recv_q.cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": channel.cs");
ret->send_q.cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": channel.send_q.cs");
ret->recv_q.cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": channel.recv_q.cs");
......
......@@ -67,7 +67,7 @@ static struct error *alloc_error(void)
}
ret->magic = ERROR_MAGIC;
InitializeCriticalSection( &ret->cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": error.cs");
prop_init( error_props, count, ret->prop, &ret[1] );
......
......@@ -184,7 +184,7 @@ static struct heap *alloc_heap(void)
if (!(ret = calloc( 1, size ))) return NULL;
ret->magic = HEAP_MAGIC;
InitializeCriticalSection( &ret->cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": heap.cs");
prop_init( heap_props, count, ret->prop, &ret[1] );
......
......@@ -141,7 +141,7 @@ static struct listener *alloc_listener(void)
free( ret );
return NULL;
}
InitializeCriticalSection( &ret->cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": listener.cs");
prop_init( listener_props, count, ret->prop, &ret[1] );
......
......@@ -108,7 +108,7 @@ static struct msg *alloc_msg(void)
ret->state = WS_MESSAGE_STATE_EMPTY;
ret->header_size = HEADER_ARRAY_SIZE;
InitializeCriticalSection( &ret->cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": msg.cs");
prop_init( msg_props, count, ret->prop, &ret[1] );
......
......@@ -62,7 +62,7 @@ static struct proxy *alloc_proxy(void)
if (!(ret = calloc( 1, size ))) return NULL;
ret->magic = PROXY_MAGIC;
InitializeCriticalSection( &ret->cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": proxy.cs");
prop_init( proxy_props, count, ret->prop, &ret[1] );
......
......@@ -422,7 +422,7 @@ static struct reader *alloc_reader(void)
ret->nb_prefixes = ret->nb_prefixes_allocated = 1;
ret->magic = READER_MAGIC;
InitializeCriticalSection( &ret->cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": reader.cs");
prop_init( reader_props, count, ret->prop, &ret[1] );
......
......@@ -109,7 +109,7 @@ static struct writer *alloc_writer(void)
if (!(ret = calloc( 1, size ))) return NULL;
ret->magic = WRITER_MAGIC;
InitializeCriticalSection( &ret->cs );
InitializeCriticalSectionEx( &ret->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": writer.cs");
prop_init( writer_props, count, ret->prop, &ret[1] );
......
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