mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FASTFAT] When overwriting a file, also update its write time
This commit is contained in:
parent
0eacb0b1ef
commit
ffeb3f070b
1 changed files with 17 additions and 0 deletions
|
@ -923,6 +923,8 @@ VfatCreateFile(
|
|||
|
||||
if (!vfatFCBIsDirectory(pFcb))
|
||||
{
|
||||
LARGE_INTEGER SystemTime;
|
||||
|
||||
if (RequestedDisposition == FILE_SUPERSEDE)
|
||||
{
|
||||
*pFcb->Attributes = Attributes;
|
||||
|
@ -932,6 +934,21 @@ VfatCreateFile(
|
|||
*pFcb->Attributes |= Attributes;
|
||||
}
|
||||
*pFcb->Attributes |= FILE_ATTRIBUTE_ARCHIVE;
|
||||
|
||||
KeQuerySystemTime(&SystemTime);
|
||||
if (vfatVolumeIsFatX(DeviceExt))
|
||||
{
|
||||
FsdSystemTimeToDosDateTime(DeviceExt,
|
||||
&SystemTime, &pFcb->entry.FatX.UpdateDate,
|
||||
&pFcb->entry.FatX.UpdateTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
FsdSystemTimeToDosDateTime(DeviceExt,
|
||||
&SystemTime, &pFcb->entry.Fat.UpdateDate,
|
||||
&pFcb->entry.Fat.UpdateTime);
|
||||
}
|
||||
|
||||
VfatUpdateEntry(pFcb, vfatVolumeIsFatX(DeviceExt));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue