mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Return the length in VfatDirectoryControl.
svn path=/trunk/; revision=14990
This commit is contained in:
parent
5e49963c1a
commit
43e3abdd99
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue