[FASTFAT]

Fix a FIXME: update the last writing date in case of null-length write.

svn path=/trunk/; revision=72157
This commit is contained in:
Pierre Schweitzer 2016-08-08 12:44:15 +00:00
parent 2a1acea36f
commit 77624f187f

View file

@ -843,12 +843,14 @@ VfatWrite(
}
}
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)
@ -918,8 +920,6 @@ VfatWrite(
}
}
OldFileSize = Fcb->RFCB.FileSize;
Buffer = VfatGetUserBuffer(IrpContext->Irp, BooleanFlagOn(IrpContext->Irp->Flags, IRP_PAGING_IO));
Status = VfatLockUserBuffer(IrpContext->Irp, Length, IoReadAccess);
if (!NT_SUCCESS(Status))
@ -1000,6 +1000,7 @@ VfatWrite(
}
}
Metadata:
if (!(IrpContext->Irp->Flags & IRP_PAGING_IO) &&
!(Fcb->Flags & (FCB_IS_FAT|FCB_IS_VOLUME)))
{