mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
[WS2_32]
- 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:
parent
f1a6ba977a
commit
f83e778875
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue