mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +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)
|
if (FileIndex > 0)
|
||||||
{
|
{
|
||||||
RC = STATUS_SUCCESS;
|
RC = STATUS_SUCCESS;
|
||||||
|
IrpContext->Irp->IoStatus.Information = Stack->Parameters.QueryDirectory.Length - BufferLength;
|
||||||
|
|
||||||
}
|
}
|
||||||
ExReleaseResourceLite(&pFcb->MainResource);
|
ExReleaseResourceLite(&pFcb->MainResource);
|
||||||
return RC;
|
return RC;
|
||||||
|
@ -495,6 +497,7 @@ NTSTATUS VfatDirectoryControl (PVFAT_IRP_CONTEXT IrpContext)
|
||||||
{
|
{
|
||||||
NTSTATUS RC = STATUS_SUCCESS;
|
NTSTATUS RC = STATUS_SUCCESS;
|
||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
|
IrpContext->Irp->IoStatus.Information = 0;
|
||||||
switch (IrpContext->MinorFunction)
|
switch (IrpContext->MinorFunction)
|
||||||
{
|
{
|
||||||
case IRP_MN_QUERY_DIRECTORY:
|
case IRP_MN_QUERY_DIRECTORY:
|
||||||
|
@ -518,7 +521,6 @@ NTSTATUS VfatDirectoryControl (PVFAT_IRP_CONTEXT IrpContext)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
IrpContext->Irp->IoStatus.Status = RC;
|
IrpContext->Irp->IoStatus.Status = RC;
|
||||||
IrpContext->Irp->IoStatus.Information = 0;
|
|
||||||
IoCompleteRequest (IrpContext->Irp, IO_NO_INCREMENT);
|
IoCompleteRequest (IrpContext->Irp, IO_NO_INCREMENT);
|
||||||
VfatFreeIrpContext(IrpContext);
|
VfatFreeIrpContext(IrpContext);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue