Author: pschweitzer
Date: Mon Aug 8 12:44:15 2016
New Revision: 72157
URL:
http://svn.reactos.org/svn/reactos?rev=72157&view=rev
Log:
[FASTFAT]
Fix a FIXME: update the last writing date in case of null-length write.
Modified:
trunk/reactos/drivers/filesystems/fastfat/rw.c
Modified: trunk/reactos/drivers/filesystems/fastfat/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] Mon Aug 8 12:44:15 2016
@@ -843,12 +843,14 @@
}
}
+ OldFileSize = Fcb->RFCB.FileSize;
+
if (Length == 0)
{
- /* FIXME: Update last write time */
+ /* Update last write time */
IrpContext->Irp->IoStatus.Information = 0;
Status = STATUS_SUCCESS;
- goto ByeBye;
+ goto Metadata;
}
if (IrpContext->Irp->Flags & IRP_PAGING_IO)
@@ -917,8 +919,6 @@
goto ByeBye;
}
}
-
- OldFileSize = Fcb->RFCB.FileSize;
Buffer = VfatGetUserBuffer(IrpContext->Irp,
BooleanFlagOn(IrpContext->Irp->Flags, IRP_PAGING_IO));
Status = VfatLockUserBuffer(IrpContext->Irp, Length, IoReadAccess);
@@ -1000,6 +1000,7 @@
}
}
+Metadata:
if (!(IrpContext->Irp->Flags & IRP_PAGING_IO) &&
!(Fcb->Flags & (FCB_IS_FAT|FCB_IS_VOLUME)))
{