mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
use of correct zones for arguments restartscan and singleentry
svn path=/trunk/; revision=151
This commit is contained in:
parent
c92156be04
commit
4850652d25
1 changed files with 3 additions and 5 deletions
|
@ -218,15 +218,14 @@ NTSTATUS DoQuery(PDEVICE_OBJECT DeviceObject, PIRP Irp,PIO_STACK_LOCATION Stack)
|
|||
unsigned long OldEntry,OldSector;
|
||||
DeviceExt = DeviceObject->DeviceExtension;
|
||||
// Obtain the callers parameters
|
||||
BufferLength = Stack->Parameters.QueryDirectory.BufferLength;
|
||||
BufferLength = Stack->Parameters.QueryDirectory.Length;
|
||||
pSearchPattern = Stack->Parameters.QueryDirectory.FileName;
|
||||
FileInformationClass = Stack->Parameters.QueryDirectory.FileInformationClass;
|
||||
FileIndex = Stack->Parameters.QueryDirectory.FileIndex;
|
||||
pFileObject = Stack->FileObject;
|
||||
pCcb =(PVfatCCB)pFileObject->FsContext2;
|
||||
pFcb = pCcb->pFcb;
|
||||
if(Stack->Parameters.QueryDirectory.RestartScan)
|
||||
// if(Stack->Flags & SL_RESTART_SCAN) ??
|
||||
if(Stack->Flags & SL_RESTART_SCAN)
|
||||
{//FIXME : what is really use of RestartScan ?
|
||||
pCcb->StartEntry=pCcb->StartSector=0;
|
||||
}
|
||||
|
@ -290,8 +289,7 @@ DPRINT("Found %w,RC=%x, sector %x entry %x\n",tmpFcb.ObjectName,RC
|
|||
}
|
||||
Buffer0=(PFILE_NAMES_INFORMATION)Buffer;
|
||||
Buffer0->FileIndex=FileIndex++;
|
||||
// if(Stack->Flags & SL_RETURN_SINGLE_ENTRY) break;
|
||||
if(Stack->Parameters.QueryDirectory.ReturnSingleEntry) break;
|
||||
if(Stack->Flags & SL_RETURN_SINGLE_ENTRY) break;
|
||||
BufferLength -= Buffer0->NextEntryOffset;
|
||||
Buffer += Buffer0->NextEntryOffset;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue