/* Backup function for HFileImage. Only a few fields need to be backup. This is for making the file buffer refresh as few as possible. */
EFI_STATUS HFileImageBackup(VOID)
/* Backup function for HFileImage. Only a few fields need to be backup. This is for making the file buffer refresh as few as possible. */
EFI_STATUS HFileImageBackup(VOID)
{
  SHELL_FREE_NON_NULL (HFileImageBackupVar.FileName);
  HFileImageBackupVar.FileName = CatSPrint (NULL, L"%s", HFileImage.FileName);
  if (HFileImageBackupVar.FileName == NULL) {
    return EFI_OUT_OF_RESOURCES;
  }
  return EFI_SUCCESS;
}