From 43e3abdd9911ddebe7b731e8ecda8f3ad2eac4a6 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Thu, 5 May 2005 11:05:05 +0000 Subject: [PATCH] - Return the length in VfatDirectoryControl. svn path=/trunk/; revision=14990 --- reactos/drivers/fs/vfat/dir.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/fs/vfat/dir.c b/reactos/drivers/fs/vfat/dir.c index 03237ae779a..0c64762b808 100644 --- a/reactos/drivers/fs/vfat/dir.c +++ b/reactos/drivers/fs/vfat/dir.c @@ -482,6 +482,8 @@ NTSTATUS DoQuery (PVFAT_IRP_CONTEXT IrpContext) if (FileIndex > 0) { RC = STATUS_SUCCESS; + IrpContext->Irp->IoStatus.Information = Stack->Parameters.QueryDirectory.Length - BufferLength; + } ExReleaseResourceLite(&pFcb->MainResource); return RC; @@ -495,6 +497,7 @@ NTSTATUS VfatDirectoryControl (PVFAT_IRP_CONTEXT IrpContext) { NTSTATUS RC = STATUS_SUCCESS; CHECKPOINT; + IrpContext->Irp->IoStatus.Information = 0; switch (IrpContext->MinorFunction) { case IRP_MN_QUERY_DIRECTORY: @@ -518,7 +521,6 @@ NTSTATUS VfatDirectoryControl (PVFAT_IRP_CONTEXT IrpContext) else { IrpContext->Irp->IoStatus.Status = RC; - IrpContext->Irp->IoStatus.Information = 0; IoCompleteRequest (IrpContext->Irp, IO_NO_INCREMENT); VfatFreeIrpContext(IrpContext); }