Skip to content

Commit f6d117d

Browse files
committed
[MSWSOCK]
- Fix a fatal typo - Add events that were missing which broke WSPSelect on connect and accept svn path=/branches/aicom-network-branch/; revision=48504
1 parent 6b8a762 commit f6d117d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dll/win32/mswsock/msafd/select.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,10 @@ WSPSelect(INT nfds,
750750
/* Fill out handle info */
751751
HandleArray->Handle = (SOCKET)readfds->fd_array[i];
752752
HandleArray->Events = AFD_EVENT_RECEIVE |
753-
AFD_EVENT_DISCONNECT |
754-
AFD_EVENT_ABORT;
753+
AFD_EVENT_DISCONNECT |
754+
AFD_EVENT_CLOSE |
755+
AFD_EVENT_ABORT |
756+
AFD_EVENT_ACCEPT;
755757

756758
/* Move to the next one */
757759
HandleArray++;
@@ -760,7 +762,7 @@ WSPSelect(INT nfds,
760762
{
761763
/* Fill out handle info */
762764
HandleArray->Handle = (SOCKET)writefds->fd_array[i];
763-
HandleArray->Events = AFD_EVENT_SEND;
765+
HandleArray->Events = AFD_EVENT_SEND | AFD_EVENT_CONNECT;
764766

765767
/* Move to the next one */
766768
HandleArray++;
@@ -776,7 +778,7 @@ WSPSelect(INT nfds,
776778
}
777779

778780
/* Check if a timeout was given */
779-
if (timeout)
781+
if (!timeout)
780782
{
781783
/* Inifinte Timeout */
782784
PollInfo->Timeout.u.LowPart = -1;

0 commit comments

Comments
 (0)