- Actually zero the select events in ZeroEvents
authorCameron Gutman <aicommander@gmail.com>
Sat, 15 Aug 2009 02:48:59 +0000 (02:48 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 15 Aug 2009 02:48:59 +0000 (02:48 +0000)
 - Part 3 of 3 (hopefully :P)

svn path=/trunk/; revision=42675

reactos/drivers/network/afd/afd/select.c

index 02eb61a..b78ee07 100644 (file)
@@ -47,8 +47,10 @@ static VOID ZeroEvents( PAFD_HANDLE HandleArray,
                 UINT HandleCount ) {
     UINT i;
 
-    for( i = 0; i < HandleCount; i++ )
+    for( i = 0; i < HandleCount; i++ ) {
        HandleArray[i].Status = 0;
+       HandleArray[i].Events = 0;
+    }
 }
 
 
@@ -194,9 +196,6 @@ AfdSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
         }
     }
 
-    ZeroEvents( PollReq->Handles,
-               PollReq->HandleCount );
-
        KeAcquireSpinLock( &DeviceExt->Lock, &OldIrql );
 
        for( i = 0; i < PollReq->HandleCount; i++ ) {