ws2_32: Move the getXXXbyYYY critical section to socket.c.

This commit is contained in:
Alexandre Julliard 2009-09-29 19:32:43 +02:00
parent 3b6b1c87fe
commit 4ad0c4d86c
2 changed files with 8 additions and 11 deletions

View File

@ -53,16 +53,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
/* critical section to protect some non-reentrant net function */
CRITICAL_SECTION csWSgetXXXbyYYY;
static CRITICAL_SECTION_DEBUG critsect_debug =
{
0, 0, &csWSgetXXXbyYYY,
{ &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
0, 0, { (DWORD_PTR)(__FILE__ ": csWSgetXXXbyYYY") }
};
CRITICAL_SECTION csWSgetXXXbyYYY = { &critsect_debug, -1, 0, 0, 0, 0 };
#define AQ_WIN16 0x00
#define AQ_WIN32 0x04
#define HB_WIN32(hb) (hb->query.flags & AQ_WIN32)

View File

@ -168,7 +168,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
/* critical section to protect some non-reentrant net function */
extern CRITICAL_SECTION csWSgetXXXbyYYY;
static CRITICAL_SECTION csWSgetXXXbyYYY;
static CRITICAL_SECTION_DEBUG critsect_debug =
{
0, 0, &csWSgetXXXbyYYY,
{ &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
0, 0, { (DWORD_PTR)(__FILE__ ": csWSgetXXXbyYYY") }
};
static CRITICAL_SECTION csWSgetXXXbyYYY = { &critsect_debug, -1, 0, 0, 0, 0 };
union generic_unix_sockaddr
{