mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +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:
parent
79bc2a1d7d
commit
44b841683d
|
@ -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++ ) {
|
||||
|
|
Loading…
Reference in a new issue