https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2cb0c129a6c68eb4a6bdbbbaf7a2fbcf89b314f8

commit 2cb0c129a6c68eb4a6bdbbbaf7a2fbcf89b314f8
Author: Thomas Faber <[email protected]>
AuthorDate: Sat Dec 30 11:46:14 2017 +0100

    [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 644e3918d0..1962f6c46d 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 ec0d3669e9..00864990b5 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);
 }

Reply via email to