mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:26:20 +00:00
[NTFS]
Add a missing lock svn path=/trunk/; revision=70787
This commit is contained in:
parent
6184b009f9
commit
0f01876900
1 changed files with 8 additions and 0 deletions
|
@ -363,6 +363,13 @@ NtfsQueryDirectory(PNTFS_IRP_CONTEXT IrpContext)
|
|||
|
||||
DPRINT("Buffer=%p tofind=%S\n", Buffer, Ccb->DirectorySearchPattern);
|
||||
|
||||
if (!ExAcquireResourceExclusiveLite(&DeviceExtension->DirResource,
|
||||
BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT)))
|
||||
{
|
||||
ExReleaseResourceLite(&Fcb->MainResource);
|
||||
return STATUS_PENDING;
|
||||
}
|
||||
|
||||
while (Status == STATUS_SUCCESS && BufferLength > 0)
|
||||
{
|
||||
Status = NtfsFindFileAt(DeviceExtension,
|
||||
|
@ -469,6 +476,7 @@ NtfsQueryDirectory(PNTFS_IRP_CONTEXT IrpContext)
|
|||
Buffer0->NextEntryOffset = 0;
|
||||
}
|
||||
|
||||
ExReleaseResourceLite(&DeviceExtension->DirResource);
|
||||
ExReleaseResourceLite(&Fcb->MainResource);
|
||||
|
||||
if (FileIndex > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue