From 93ff988b1964ccaf0de25ccdf6a3134aba40c434 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 6 Sep 2015 22:10:53 +0000 Subject: [PATCH] [NTOSKRNL] Fix a bug in HalpGetFullGeometry(): properly reset the event before reusing it. We may have waited on it previously. svn path=/trunk/; revision=69074 --- reactos/ntoskrnl/fstub/disksup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/ntoskrnl/fstub/disksup.c b/reactos/ntoskrnl/fstub/disksup.c index e82e82a02af..d5b610873e5 100644 --- a/reactos/ntoskrnl/fstub/disksup.c +++ b/reactos/ntoskrnl/fstub/disksup.c @@ -1010,6 +1010,9 @@ HalpGetFullGeometry(IN PDEVICE_OBJECT DeviceObject, return STATUS_INSUFFICIENT_RESOURCES; } + /* Reset event */ + KeResetEvent(Event); + /* Call the driver and check if it's pending */ Status = IoCallDriver(DeviceObject, Irp); if (Status == STATUS_PENDING)