From acc9e3e78a4ee2aaa05c0ea698c64e4ace8f3337 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 29 Mar 2010 02:59:44 +0000 Subject: [PATCH] [NTOSKRNL] - Set the IRP_SYNCHRONOUS_API flag on IRPs created by IoBuildSynchronousFsdRequest svn path=/trunk/; revision=46550 --- reactos/ntoskrnl/io/iomgr/irp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/iomgr/irp.c b/reactos/ntoskrnl/io/iomgr/irp.c index 0863f58907b..30107c16949 100644 --- a/reactos/ntoskrnl/io/iomgr/irp.c +++ b/reactos/ntoskrnl/io/iomgr/irp.c @@ -966,9 +966,12 @@ IoBuildSynchronousFsdRequest(IN ULONG MajorFunction, IoStatusBlock ); if (!Irp) return NULL; - /* Set the Event which makes it Syncronous */ + /* Associate the caller's event object with this IRP */ Irp->UserEvent = Event; + /* Set the synchronous flag */ + Irp->Flags |= IRP_SYNCHRONOUS_API; + /* Sync IRPs are queued to requestor thread's irp cancel/cleanup list */ IoQueueThreadIrp(Irp); return Irp;