From 09ab0eb733787543f632fa47e43655c963c51ac4 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 29 Mar 2010 08:51:12 +0000 Subject: [PATCH] [NTOSKRNL] . Revert 46550: Windows does not set this flag. ReactOS shouldn't either. Setting UserEvent is already enough in this case. svn path=/trunk/; revision=46563 --- reactos/ntoskrnl/io/iomgr/irp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/io/iomgr/irp.c b/reactos/ntoskrnl/io/iomgr/irp.c index 30107c16949..0863f58907b 100644 --- a/reactos/ntoskrnl/io/iomgr/irp.c +++ b/reactos/ntoskrnl/io/iomgr/irp.c @@ -966,12 +966,9 @@ IoBuildSynchronousFsdRequest(IN ULONG MajorFunction, IoStatusBlock ); if (!Irp) return NULL; - /* Associate the caller's event object with this IRP */ + /* Set the Event which makes it Syncronous */ 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;