* net.cc (wsock_event::release): Use NULL handle in call to

WSAEventSelect to resolve KB 168349.
This commit is contained in:
Corinna Vinschen
2004-04-02 10:29:53 +00:00
parent 59c9f5f586
commit f5da8224f6
2 changed files with 7 additions and 1 deletions

View File

@@ -119,7 +119,8 @@ void
wsock_event::release (int sock)
{
int last_err = WSAGetLastError ();
WSAEventSelect (sock, event, 0);
/* KB 168349: NT4 fails if the event parameter is not NULL. */
WSAEventSelect (sock, NULL, 0);
WSACloseEvent (event);
unsigned long non_block = 0;
if (ioctlsocket (sock, FIONBIO, &non_block))