mirror of
https://github.com/reactos/reactos.git
synced 2025-05-21 18:16:07 +00:00
[NTFS]
- Only set the IOSB status if we complete the IRP - Fix the assert: the caller might want not to complete the IRP nor to queue it (passed down IRPs) svn path=/trunk/; revision=67636
This commit is contained in:
parent
0c5f4d92cd
commit
07f38d007d
1 changed files with 6 additions and 2 deletions
|
@ -85,13 +85,17 @@ NtfsFsdDispatch(PDEVICE_OBJECT DeviceObject,
|
||||||
else
|
else
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
ASSERT(((IrpContext->Flags & IRPCONTEXT_COMPLETE) && !(IrpContext->Flags & IRPCONTEXT_QUEUE)) ||
|
ASSERT((!(IrpContext->Flags & IRPCONTEXT_COMPLETE) && !(IrpContext->Flags & IRPCONTEXT_QUEUE)) ||
|
||||||
|
((IrpContext->Flags & IRPCONTEXT_COMPLETE) && !(IrpContext->Flags & IRPCONTEXT_QUEUE)) ||
|
||||||
(!(IrpContext->Flags & IRPCONTEXT_COMPLETE) && (IrpContext->Flags & IRPCONTEXT_QUEUE)));
|
(!(IrpContext->Flags & IRPCONTEXT_COMPLETE) && (IrpContext->Flags & IRPCONTEXT_QUEUE)));
|
||||||
|
|
||||||
Irp->IoStatus.Status = Status;
|
|
||||||
|
|
||||||
if (IrpContext->Flags & IRPCONTEXT_COMPLETE)
|
if (IrpContext->Flags & IRPCONTEXT_COMPLETE)
|
||||||
|
{
|
||||||
|
Irp->IoStatus.Status = Status;
|
||||||
IoCompleteRequest(Irp, IrpContext->PriorityBoost);
|
IoCompleteRequest(Irp, IrpContext->PriorityBoost);
|
||||||
|
}
|
||||||
|
|
||||||
if (IrpContext)
|
if (IrpContext)
|
||||||
ExFreePoolWithTag(IrpContext, 'PRIN');
|
ExFreePoolWithTag(IrpContext, 'PRIN');
|
||||||
|
|
Loading…
Reference in a new issue