/* Take the original command line, substitute any variables, free the original string, return the modified copy. */
EFI_STATUS ShellSubstituteVariables(IN CHAR16 **CmdLine)
/* Take the original command line, substitute any variables, free the original string, return the modified copy. */
EFI_STATUS ShellSubstituteVariables(IN CHAR16 **CmdLine)
{
  CHAR16  *NewCmdLine;
  NewCmdLine = ShellConvertVariables (*CmdLine);
  SHELL_FREE_NON_NULL (*CmdLine);
  if (NewCmdLine == NULL) {
    return (EFI_OUT_OF_RESOURCES);
  }
  *CmdLine = NewCmdLine;
  return (EFI_SUCCESS);
}