[ros-diffs] [cgutman] 46550: [NTOSKRNL] - Set the IRP_SYNCHRONOUS_API flag on IRPs created by IoBuildSynchronousFsdRequest

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Mar 29 04:59:44 CEST 2010


Author: cgutman
Date: Mon Mar 29 04:59:44 2010
New Revision: 46550

URL: http://svn.reactos.org/svn/reactos?rev=46550&view=rev
Log:
[NTOSKRNL]
- Set the IRP_SYNCHRONOUS_API flag on IRPs created by IoBuildSynchronousFsdRequest

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/irp.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/irp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/irp.c?rev=46550&r1=46549&r2=46550&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/irp.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/irp.c [iso-8859-1] Mon Mar 29 04:59:44 2010
@@ -966,8 +966,11 @@
                                         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);




More information about the Ros-diffs mailing list