- Check the return value of WSPSelect instead of the error number because the error number doesn't have to be initialized if the function doesn't return SOCKET_ERROR

svn path=/trunk/; revision=48491
This commit is contained in:
Cameron Gutman 2010-08-09 15:42:51 +00:00
parent f1a6ba977a
commit f83e778875

View file

@ -459,7 +459,7 @@ select(IN INT nfds,
DereferenceProviderByPointer(Provider); DereferenceProviderByPointer(Provider);
if (Errno != NO_ERROR) if (Count == SOCKET_ERROR)
{ {
WSASetLastError(Errno); WSASetLastError(Errno);
return SOCKET_ERROR; return SOCKET_ERROR;