From 2cb0c129a6c68eb4a6bdbbbaf7a2fbcf89b314f8 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 30 Dec 2017 11:46:14 +0100 Subject: [PATCH] [KMTESTS] Use KeClearEvent instead of KeResetEvent where the previous state is not needed. --- modules/rostests/kmtests/kmtest_drv/kmtest_drv.c | 2 +- modules/rostests/kmtests/npfs/NpfsHelpers.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rostests/kmtests/kmtest_drv/kmtest_drv.c b/modules/rostests/kmtests/kmtest_drv/kmtest_drv.c index 644e3918d02..1962f6c46d1 100644 --- a/modules/rostests/kmtests/kmtest_drv/kmtest_drv.c +++ b/modules/rostests/kmtests/kmtest_drv/kmtest_drv.c @@ -458,7 +458,7 @@ DriverIoControl( RtlCopyMemory(Irp->AssociatedIrp.SystemBuffer, &WorkItem->Request, Length); Status = STATUS_SUCCESS; - KeResetEvent(&WorkList.NewWorkEvent); + KeClearEvent(&WorkList.NewWorkEvent); break; } diff --git a/modules/rostests/kmtests/npfs/NpfsHelpers.c b/modules/rostests/kmtests/npfs/NpfsHelpers.c index ec0d3669e96..00864990b50 100644 --- a/modules/rostests/kmtests/npfs/NpfsHelpers.c +++ b/modules/rostests/kmtests/npfs/NpfsHelpers.c @@ -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); }