mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[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:
parent
2a1acea36f
commit
77624f187f
1 changed files with 5 additions and 4 deletions
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue