- Only free the IRP context in case the request is not to be queued
- Stubplement request queueing support in NtfsDispatch()

svn path=/trunk/; revision=67877
This commit is contained in:
Pierre Schweitzer 2015-05-24 12:20:51 +00:00
parent 6277edf7d8
commit d71894a0ad

View file

@ -87,8 +87,17 @@ NtfsDispatch(PNTFS_IRP_CONTEXT IrpContext)
IoCompleteRequest(Irp, IrpContext->PriorityBoost);
}
if (IrpContext)
if (IrpContext->Flags & IRPCONTEXT_QUEUE)
{
/* Reset our status flags before queueing the IRP */
IrpContext->Flags |= IRPCONTEXT_COMPLETE;
IrpContext->Flags &= ~IRPCONTEXT_QUEUE;
UNIMPLEMENTED_DBGBREAK();
}
else
{
ExFreePoolWithTag(IrpContext, 'PRIN');
}
IoSetTopLevelIrp(NULL);
FsRtlExitFileSystem();