mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 15:50:29 +08:00
[KMTESTS] Use KeClearEvent instead of KeResetEvent where the previous state is not needed.
This commit is contained in:
@@ -458,7 +458,7 @@ DriverIoControl(
|
||||
RtlCopyMemory(Irp->AssociatedIrp.SystemBuffer, &WorkItem->Request, Length);
|
||||
Status = STATUS_SUCCESS;
|
||||
|
||||
KeResetEvent(&WorkList.NewWorkEvent);
|
||||
KeClearEvent(&WorkList.NewWorkEvent);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user