[KMTESTS] Use KeClearEvent instead of KeResetEvent where the previous state is not...
authorThomas Faber <thomas.faber@reactos.org>
Sat, 30 Dec 2017 10:46:14 +0000 (11:46 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 30 Dec 2017 10:46:14 +0000 (11:46 +0100)
modules/rostests/kmtests/kmtest_drv/kmtest_drv.c
modules/rostests/kmtests/npfs/NpfsHelpers.c

index 644e391..1962f6c 100644 (file)
@@ -458,7 +458,7 @@ DriverIoControl(
             RtlCopyMemory(Irp->AssociatedIrp.SystemBuffer, &WorkItem->Request, Length);
             Status = STATUS_SUCCESS;
 
-            KeResetEvent(&WorkList.NewWorkEvent);
+            KeClearEvent(&WorkList.NewWorkEvent);
             break;
 
         }
index ec0d366..0086499 100644 (file)
@@ -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);
 }