[AFD]
authorCameron Gutman <aicommander@gmail.com>
Thu, 7 Jul 2011 23:17:23 +0000 (23:17 +0000)
committerCameron Gutman <aicommander@gmail.com>
Thu, 7 Jul 2011 23:17:23 +0000 (23:17 +0000)
- Fix a desired access bug that totally broke event select
- FILE_ALL_ACCESS is NOT equal to EVENT_ALL_ACCESS

svn path=/trunk/; revision=52563

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

index 9841ddf..591d66e 100644 (file)
@@ -286,7 +286,7 @@ AfdEventSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
     if( EventSelectInfo->EventObject && EventSelectInfo->Events ) {
        Status = ObReferenceObjectByHandle( (PVOID)EventSelectInfo->
                                            EventObject,
-                                           FILE_ALL_ACCESS,
+                                           EVENT_ALL_ACCESS,
                                            ExEventObjectType,
                                            UserMode,
                                            (PVOID *)&FCB->EventSelect,