[FREELDR]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 26 Mar 2016 13:19:09 +0000 (13:19 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 26 Mar 2016 13:19:09 +0000 (13:19 +0000)
Cherrypick r71053

svn path=/trunk/; revision=71054

reactos/boot/freeldr/freeldr/lib/fs/ntfs.c

index f293051..e8a5745 100644 (file)
@@ -313,7 +313,7 @@ static ULONG NtfsReadAttribute(PNTFS_VOLUME_INFO Volume, PNTFS_ATTR_CONTEXT Cont
         {
             CurrentOffset += DataRunLength * Volume->ClusterSize;
             DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
         {
             CurrentOffset += DataRunLength * Volume->ClusterSize;
             DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
-            if (DataRunLength != (ULONGLONG)-1)
+            if (DataRunOffset != (ULONGLONG)-1)
             {
                 DataRunStartLCN = LastLCN + DataRunOffset;
                 LastLCN = DataRunStartLCN;
             {
                 DataRunStartLCN = LastLCN + DataRunOffset;
                 LastLCN = DataRunStartLCN;