mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- Actually zero the select events in ZeroEvents
- Part 3 of 3 (hopefully :P) svn path=/trunk/; revision=42675
This commit is contained in:
@@ -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++ ) {
|
||||
|
||||
Reference in New Issue
Block a user