Author: cgutman Date: Tue Aug 10 06:02:29 2010 New Revision: 48504
URL: http://svn.reactos.org/svn/reactos?rev=48504&view=rev Log: [MSWSOCK] - Fix a fatal typo - Add events that were missing which broke WSPSelect on connect and accept
Modified: branches/aicom-network-branch/dll/win32/mswsock/msafd/select.c
Modified: branches/aicom-network-branch/dll/win32/mswsock/msafd/select.c URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/m... ============================================================================== --- branches/aicom-network-branch/dll/win32/mswsock/msafd/select.c [iso-8859-1] (original) +++ branches/aicom-network-branch/dll/win32/mswsock/msafd/select.c [iso-8859-1] Tue Aug 10 06:02:29 2010 @@ -750,8 +750,10 @@ /* Fill out handle info */ HandleArray->Handle = (SOCKET)readfds->fd_array[i]; HandleArray->Events = AFD_EVENT_RECEIVE | - AFD_EVENT_DISCONNECT | - AFD_EVENT_ABORT; + AFD_EVENT_DISCONNECT | + AFD_EVENT_CLOSE | + AFD_EVENT_ABORT | + AFD_EVENT_ACCEPT;
/* Move to the next one */ HandleArray++; @@ -760,7 +762,7 @@ { /* Fill out handle info */ HandleArray->Handle = (SOCKET)writefds->fd_array[i]; - HandleArray->Events = AFD_EVENT_SEND; + HandleArray->Events = AFD_EVENT_SEND | AFD_EVENT_CONNECT;
/* Move to the next one */ HandleArray++; @@ -776,7 +778,7 @@ }
/* Check if a timeout was given */ - if (timeout) + if (!timeout) { /* Inifinte Timeout */ PollInfo->Timeout.u.LowPart = -1;