mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
[NTOSKRNL]
- Set the IRP_SYNCHRONOUS_API flag on IRPs created by IoBuildSynchronousFsdRequest svn path=/trunk/; revision=46550
This commit is contained in:
parent
d16419c3da
commit
acc9e3e78a
|
@ -966,9 +966,12 @@ IoBuildSynchronousFsdRequest(IN ULONG MajorFunction,
|
||||||
IoStatusBlock );
|
IoStatusBlock );
|
||||||
if (!Irp) return NULL;
|
if (!Irp) return NULL;
|
||||||
|
|
||||||
/* Set the Event which makes it Syncronous */
|
/* Associate the caller's event object with this IRP */
|
||||||
Irp->UserEvent = Event;
|
Irp->UserEvent = Event;
|
||||||
|
|
||||||
|
/* Set the synchronous flag */
|
||||||
|
Irp->Flags |= IRP_SYNCHRONOUS_API;
|
||||||
|
|
||||||
/* Sync IRPs are queued to requestor thread's irp cancel/cleanup list */
|
/* Sync IRPs are queued to requestor thread's irp cancel/cleanup list */
|
||||||
IoQueueThreadIrp(Irp);
|
IoQueueThreadIrp(Irp);
|
||||||
return Irp;
|
return Irp;
|
||||||
|
|
Loading…
Reference in a new issue