/* Copy all the information of DirEnt2 to DirEnt1 except for 8.3 name. */
VOID FatCloneDirEnt(IN FAT_DIRENT *DirEnt1, IN FAT_DIRENT *DirEnt2)
/* Copy all the information of DirEnt2 to DirEnt1 except for 8.3 name. */
VOID FatCloneDirEnt(IN FAT_DIRENT *DirEnt1, IN FAT_DIRENT *DirEnt2)
{
  UINT8  *Entry1;
  UINT8  *Entry2;
  Entry1 = (UINT8 *)&DirEnt1->Entry;
  Entry2 = (UINT8 *)&DirEnt2->Entry;
  CopyMem (
    Entry1 + FAT_ENTRY_INFO_OFFSET,
    Entry2 + FAT_ENTRY_INFO_OFFSET,
    sizeof (FAT_DIRECTORY_ENTRY) - FAT_ENTRY_INFO_OFFSET
    );
}