summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Fleytman <dfleytma@redhat.com>2017-02-08 13:00:16 +0200
committerDmitry Fleytman <dfleytma@redhat.com>2017-02-08 13:00:16 +0200
commit76299389cec5751f086eb59af3286ea068e1d28c (patch)
tree409d654e49b8e342e873167e60066b9308aeeb79
parent5288bfcbcbba10dd822b097656fddafba9bd6d2d (diff)
ControlIrp: Clear event state prior to sending IRP
This is needed in case client sends the same IRP for a few times. Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
-rw-r--r--UsbDk/Irp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/UsbDk/Irp.cpp b/UsbDk/Irp.cpp
index eab7fa8..d0556f2 100644
--- a/UsbDk/Irp.cpp
+++ b/UsbDk/Irp.cpp
@@ -119,6 +119,8 @@ NTSTATUS CIoControlIrp::Create(PDEVICE_OBJECT TargetDevice,
NTSTATUS CIoControlIrp::SendSynchronously()
{
+ m_Event.Clear();
+
auto res = IoCallDriver(m_TargetDevice, m_Irp);
if (res == STATUS_PENDING)
{