Author: pschweitzer
Date: Sun May 24 12:20:51 2015
New Revision: 67877
URL:
http://svn.reactos.org/svn/reactos?rev=67877&view=rev
Log:
[NTFS]
- Only free the IRP context in case the request is not to be queued
- Stubplement request queueing support in NtfsDispatch()
Modified:
trunk/reactos/drivers/filesystems/ntfs/dispatch.c
Modified: trunk/reactos/drivers/filesystems/ntfs/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/d…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/dispatch.c [iso-8859-1] Sun May 24 12:20:51
2015
@@ -87,8 +87,17 @@
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();