[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Wed, 24 Feb 2016 07:54:20 +0000 (07:54 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 24 Feb 2016 07:54:20 +0000 (07:54 +0000)
Properly queue the IRP for deferred execution in case we got pending status

svn path=/trunk/; revision=70780

reactos/drivers/filesystems/ntfs/dirctl.c

index 86f8716..c19bf6b 100644 (file)
@@ -503,6 +503,11 @@ NtfsDirectoryControl(PNTFS_IRP_CONTEXT IrpContext)
             break;
     }
 
             break;
     }
 
+    if (Status == STATUS_PENDING && IrpContext->Flags & IRPCONTEXT_COMPLETE)
+    {
+        return NtfsMarkIrpContextForQueue(IrpContext);
+    }
+
     IrpContext->Irp->IoStatus.Information = 0;
 
     return Status;
     IrpContext->Irp->IoStatus.Information = 0;
 
     return Status;