// We will append this entry to the end of directory\r
//\r
FatGetCurrentFatTime (&DirEnt->Entry.FileCreateTime);\r
- FatGetCurrentFatTime (&DirEnt->Entry.FileModificationTime);\r
+ CopyMem (&DirEnt->Entry.FileModificationTime, &DirEnt->Entry.FileCreateTime, sizeof (FAT_DATE_TIME));\r
+ CopyMem (&DirEnt->Entry.FileLastAccess, &DirEnt->Entry.FileCreateTime.Date, sizeof (FAT_DATE));\r
NewEndPos = ODir->CurrentEndPos + DirEnt->EntryCount;\r
if (NewEndPos * sizeof (FAT_DIRECTORY_ENTRY) > OFile->FileSize) {\r
if (NewEndPos >= (OFile->IsFixedRootDir ? OFile->Volume->RootEntries : FAT_MAX_DIRENTRY_COUNT)) {\r