Author: cgutman
Date: Mon Aug 9 15:37:12 2010
New Revision: 48490
URL:
http://svn.reactos.org/svn/reactos?rev=48490&view=rev
Log:
[MSWSOCK]
- Fix a crash in WSPSelect
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/…
==============================================================================
--- 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] Mon Aug 9
15:37:12 2010
@@ -13,7 +13,7 @@
(s->SharedData.AsyncEvents & e))
#define HANDLES_IN_SET(s) \
- s == NULL ? 0 : (s->fd_count & 0xFFFF)
+(((s) == NULL) ? 0 : ((s)->fd_count & 0xFFFF))
/* DATA **********************************************************************/