[WSD] Fixed a small problem that happens when running applications with the Applicati...
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 11 Jun 2006 14:10:47 +0000 (14:10 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 11 Jun 2006 14:10:47 +0000 (14:10 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@385 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibspdll.c

index 1bbc514..9e48973 100644 (file)
@@ -874,7 +874,10 @@ IBSPEnumNetworkEvents(
 \r
        IBSP_ENTER( IBSP_DBG_NEV );\r
 \r
-       ResetEvent( hEventObject );\r
+       if( hEventObject != NULL )\r
+       {\r
+               ResetEvent( hEventObject );\r
+       }\r
 \r
        lpNetworkEvents->lNetworkEvents =\r
                InterlockedExchange( &socket_info->network_events, 0 );\r