mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTFS]
Acquire FCB resource (shared) before trying to attempt its data svn path=/trunk/; revision=67910
This commit is contained in:
parent
c28fc5a816
commit
94d99f3fe3
1 changed files with 8 additions and 0 deletions
|
@ -246,6 +246,12 @@ NtfsQueryInformation(PNTFS_IRP_CONTEXT IrpContext)
|
|||
SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
|
||||
BufferLength = Stack->Parameters.QueryFile.Length;
|
||||
|
||||
if (!ExAcquireResourceSharedLite(&Fcb->MainResource,
|
||||
(BOOLEAN)(IrpContext->Flags & IRPCONTEXT_CANWAIT)))
|
||||
{
|
||||
return NtfsMarkIrpContextForQueue(IrpContext);
|
||||
}
|
||||
|
||||
switch (FileInformationClass)
|
||||
{
|
||||
case FileStandardInformation:
|
||||
|
@ -301,6 +307,8 @@ NtfsQueryInformation(PNTFS_IRP_CONTEXT IrpContext)
|
|||
Status = STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
ExReleaseResourceLite(&Fcb->MainResource);
|
||||
|
||||
if (NT_SUCCESS(Status))
|
||||
Irp->IoStatus.Information =
|
||||
Stack->Parameters.QueryFile.Length - BufferLength;
|
||||
|
|
Loading…
Reference in a new issue