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