[KMTESTS] Use KeClearEvent instead of KeResetEvent where the previous state is not needed.

This commit is contained in:
Thomas Faber 2017-12-30 11:46:14 +01:00
parent 75850abcbb
commit 2cb0c129a6
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
2 changed files with 2 additions and 2 deletions

View file

@ -458,7 +458,7 @@ DriverIoControl(
RtlCopyMemory(Irp->AssociatedIrp.SystemBuffer, &WorkItem->Request, Length);
Status = STATUS_SUCCESS;
KeResetEvent(&WorkList.NewWorkEvent);
KeClearEvent(&WorkList.NewWorkEvent);
break;
}

View file

@ -709,7 +709,7 @@ TriggerWork(
FALSE,
NULL);
ok_eq_hex(Status, STATUS_SUCCESS);
KeResetEvent(&Context->WorkCompleteEvent);
KeClearEvent(&Context->WorkCompleteEvent);
KeSetEvent(&Context->StartWorkEvent, IO_NO_INCREMENT, TRUE);
return WaitForWork(Context, MilliSeconds);
}