[AFD]
authorCameron Gutman <aicommander@gmail.com>
Mon, 7 Jun 2010 01:38:15 +0000 (01:38 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 7 Jun 2010 01:38:15 +0000 (01:38 +0000)
- It is legal to send a NULL event object pointer to AFD (this is sent by msafd to cancel an existing event select)

svn path=/trunk/; revision=47651

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

index d201a8c..dd334d3 100644 (file)
@@ -296,8 +296,11 @@ AfdEventSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
            FCB->EventSelect = NULL;
        else
            FCB->EventSelectTriggers = EventSelectInfo->Events;
-    } else
-       Status = STATUS_INVALID_PARAMETER;
+    } else {
+        FCB->EventSelect = NULL;
+        FCB->EventSelectTriggers = 0;
+       Status = STATUS_SUCCESS;
+    }
 
     AFD_DbgPrint(MID_TRACE,("Returning %x\n", Status));