mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[NTFS]
- 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user