[NTFS] When reading $I30 attribute fails, stop the rename operation.
[reactos.git] / drivers / filesystems / ntfs / mft.c
index 515abf7..24f28e0 100644 (file)
@@ -1662,6 +1662,7 @@ UpdateFileNameRecord(PDEVICE_EXTENSION Vcb,
         ExFreePoolWithTag(IndexRecord, TAG_NTFS);
         ReleaseAttributeContext(IndexRootCtx);
         ExFreeToNPagedLookasideList(&Vcb->FileRecLookasideList, MftRecord);
+        return Status;
     }
 
     IndexRoot = (PINDEX_ROOT_ATTRIBUTE)IndexRecord;