Skip to content

Commit

Permalink
Fixed LastAccessTime and FileChangeTime being swapped
Browse files Browse the repository at this point in the history
The `StandardInformation` was not being initialized properly when processing attributes. `ProcessAttributes` was changed to instantiate `StandardInformation` passing the `LastAccessTime` and `FileChangeTime` attributes in the correct order.

Fixes michaelkc#2
  • Loading branch information
peteraritchie authored Mar 26, 2022
1 parent 75ca146 commit 91e2e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NtfsReader/System/IO/Filesystem/Ntfs/NtfsReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1002,8 +1002,8 @@ This is used when an AttributeList is being processed and we only want a specifi
_standardInformations[nodeIndex] =
new StandardInformation(
attributeStandardInformation->CreationTime,
attributeStandardInformation->FileChangeTime,
attributeStandardInformation->LastAccessTime
attributeStandardInformation->LastAccessTime,
attributeStandardInformation->FileChangeTime
);

break;
Expand Down

0 comments on commit 91e2e56

Please sign in to comment.