[NTFS] - Fix a bug with last commit, as spotted by Pierre.
authorTrevor Thompson <tmt256@email.vccs.edu>
Sat, 13 May 2017 09:17:06 +0000 (09:17 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 10 Dec 2017 10:14:19 +0000 (11:14 +0100)
svn path=/branches/GSoC_2016/NTFS/; revision=74525

drivers/filesystems/ntfs/mft.c

index 1e23675..4dba9c6 100644 (file)
@@ -437,7 +437,7 @@ SetAttributeDataLength(PFILE_OBJECT FileObject,
                     if (!NT_SUCCESS(Status))
                     {
                         DPRINT1("ERROR: Unable to migrate resident attribute!\n");
-                        if(AttribData != NULL)
+                        if (AttribDataSize.QuadPart > 0)
                             ExFreePoolWithTag(AttribData, TAG_NTFS);
                         return Status;
                     }