Author: tthompson Date: Wed Jul 6 07:57:57 2016 New Revision: 71832
URL: http://svn.reactos.org/svn/reactos?rev=71832&view=rev Log: [NTFS] Fix copy-paste error in SetAttributeDataLength()
Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c
Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/drivers/filesyste... ============================================================================== --- branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c [iso-8859-1] (original) +++ branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c [iso-8859-1] Wed Jul 6 07:57:57 2016 @@ -228,9 +228,9 @@ NTSTATUS Status = STATUS_SUCCESS;
// are we truncating the file? - if (DataSize->QuadPart < AttributeDataLength(&AttrContext->Record) - { - if (!MmCanFileBeTruncated(FileObject->SectionObjectPointer, (PLARGE_INTEGER)&AllocationSize)) + if (DataSize->QuadPart < AttributeDataLength(&AttrContext->Record)) + { + if (!MmCanFileBeTruncated(FileObject->SectionObjectPointer, DataSize)) { DPRINT1("Can't truncate a memory-mapped file!\n"); return STATUS_USER_MAPPED_FILE;