Skip to content

Commit 2b3b19f

Browse files
committed
NTFS: IndexData: Minor optimization
1 parent 6e5666b commit 2b3b19f

File tree

1 file changed

+1
-1
lines changed
  • DiskAccessLibrary/FileSystems/NTFS/AttributeData

1 file changed

+1
-1
lines changed

DiskAccessLibrary/FileSystems/NTFS/AttributeData/IndexData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private void SplitRootIndexRecord()
171171
{
172172
IndexRecord childRecord = new IndexRecord();
173173
childRecord.IsParentNode = m_rootRecord.IsParentNode;
174-
childRecord.IndexEntries = new List<IndexEntry>(m_rootRecord.IndexEntries);
174+
childRecord.IndexEntries.AddRange(m_rootRecord.IndexEntries);
175175
long childRecordIndex = AllocateIndexRecord();
176176
childRecord.RecordVBN = ConvertToVirtualBlockNumber(childRecordIndex);
177177
WriteIndexRecord(childRecordIndex, childRecord);

0 commit comments

Comments
 (0)