mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 02:56:09 +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);
|
RtlCopyMemory(Irp->AssociatedIrp.SystemBuffer, &WorkItem->Request, Length);
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
KeResetEvent(&WorkList.NewWorkEvent);
|
KeClearEvent(&WorkList.NewWorkEvent);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -709,7 +709,7 @@ TriggerWork(
|
||||||
FALSE,
|
FALSE,
|
||||||
NULL);
|
NULL);
|
||||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||||
KeResetEvent(&Context->WorkCompleteEvent);
|
KeClearEvent(&Context->WorkCompleteEvent);
|
||||||
KeSetEvent(&Context->StartWorkEvent, IO_NO_INCREMENT, TRUE);
|
KeSetEvent(&Context->StartWorkEvent, IO_NO_INCREMENT, TRUE);
|
||||||
return WaitForWork(Context, MilliSeconds);
|
return WaitForWork(Context, MilliSeconds);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue