mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[0.4.9] cherry-pick [FASTFAT] Lock DirResource on flush in case we're updating entry
CORE-14660
(cherry picked from commit 9f3169b295
)
This commit is contained in:
parent
ae5aa9cd8b
commit
98e87bcafd
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,7 @@ VfatFlushFile(
|
|||
IoStatus.Status = STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
ExAcquireResourceExclusiveLite(&DeviceExt->DirResource, TRUE);
|
||||
if (BooleanFlagOn(Fcb->Flags, FCB_IS_DIRTY))
|
||||
{
|
||||
Status = VfatUpdateEntry(DeviceExt, Fcb);
|
||||
|
@ -41,6 +42,8 @@ VfatFlushFile(
|
|||
IoStatus.Status = Status;
|
||||
}
|
||||
}
|
||||
ExReleaseResourceLite(&DeviceExt->DirResource);
|
||||
|
||||
return IoStatus.Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue