X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=drivers%2Ffs%2Fvfat%2Fdir.c;h=35a74793f60bc17efe25a362212451a03380b36c;hp=362fde8c96b88155dc6f5b5bbb80fc825d3e7eca;hb=HEAD;hpb=7c0db166f81fbe8c8b913d7f26048e337d383605 diff --git a/drivers/fs/vfat/dir.c b/drivers/fs/vfat/dir.c index 362fde8..35a7479 100644 --- a/drivers/fs/vfat/dir.c +++ b/drivers/fs/vfat/dir.c @@ -207,21 +207,24 @@ NTSTATUS DoQuery (PVFAT_IRP_CONTEXT IrpContext) VFATFCB tmpFcb; PVFATCCB pCcb; BOOLEAN First = FALSE; + + PEXTENDED_IO_STACK_LOCATION Stack = (PEXTENDED_IO_STACK_LOCATION) IrpContext->Stack; pCcb = (PVFATCCB) IrpContext->FileObject->FsContext2; pFcb = (PVFATFCB) IrpContext->FileObject->FsContext; - if (!ExAcquireResourceSharedLite(&pFcb->MainResource, IrpContext->Flags & IRPCONTEXT_CANWAIT)) + if (!ExAcquireResourceSharedLite(&pFcb->MainResource, + (BOOLEAN)(IrpContext->Flags & IRPCONTEXT_CANWAIT))) { return STATUS_PENDING; } // Obtain the callers parameters - BufferLength = IrpContext->Stack->Parameters.QueryDirectory.Length; - pSearchPattern = IrpContext->Stack->Parameters.QueryDirectory.FileName; + BufferLength = Stack->Parameters.QueryDirectory.Length; + pSearchPattern = Stack->Parameters.QueryDirectory.FileName; FileInformationClass = - IrpContext->Stack->Parameters.QueryDirectory.FileInformationClass; - FileIndex = IrpContext->Stack->Parameters.QueryDirectory.FileIndex; + Stack->Parameters.QueryDirectory.FileInformationClass; + FileIndex = Stack->Parameters.QueryDirectory.FileIndex; if (pSearchPattern) { if (!pCcb->DirectorySearchPattern)