Skip to content

Commit ab9166e

Browse files
committed
NTFS: AttributeData: Bugfix: Attribute sorting rules were not applied when converting a resident attribute to non-resident
1 parent 3cbac79 commit ab9166e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DiskAccessLibrary/FileSystems/NTFS/AttributeData/AttributeData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public void Extend(ulong additionalLengthInBytes)
221221
if (m_fileRecord != null)
222222
{
223223
m_fileRecord.RemoveAttributeRecord(m_attributeRecord.AttributeType, m_attributeRecord.Name);
224-
m_fileRecord.Attributes.Add(attributeRecord);
224+
FileRecordHelper.InsertSorted(m_fileRecord.Attributes, attributeRecord);
225225
}
226226
m_attributeRecord = attributeRecord;
227227
}

0 commit comments

Comments
 (0)