mirror of
https://github.com/reactos/reactos.git
synced 2025-05-22 10:35:54 +00:00
[KMTESTS] Use KeClearEvent instead of KeResetEvent where the previous state is not needed.
This commit is contained in:
parent
75850abcbb
commit
2cb0c129a6
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue