projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1a6ba9
)
[WS2_32]
author
Cameron Gutman
<aicommander@gmail.com>
Mon, 9 Aug 2010 15:42:51 +0000
(15:42 +0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Mon, 9 Aug 2010 15:42:51 +0000
(15:42 +0000)
- 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
reactos/dll/win32/ws2_32/misc/dllmain.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/ws2_32/misc/dllmain.c
b/reactos/dll/win32/ws2_32/misc/dllmain.c
index
b71f80e
..
12620c6
100644
(file)
--- a/
reactos/dll/win32/ws2_32/misc/dllmain.c
+++ b/
reactos/dll/win32/ws2_32/misc/dllmain.c
@@
-459,7
+459,7
@@
select(IN INT nfds,
DereferenceProviderByPointer(Provider);
- if (
Errno != NO
_ERROR)
+ if (
Count == SOCKET
_ERROR)
{
WSASetLastError(Errno);
return SOCKET_ERROR;