ws2_32: Move the getXXXbyYYY critical section to socket.c.
This commit is contained in:
parent
3b6b1c87fe
commit
4ad0c4d86c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue