/* Note that the current directory string should exclude the tailing backslash character. */
CONST CHAR16* EFIAPI ShellGetCurrentDir(IN CHAR16 *CONST DeviceName OPTIONAL)
/* Note that the current directory string should exclude the tailing backslash character. */
CONST CHAR16* EFIAPI ShellGetCurrentDir(IN CHAR16 *CONST DeviceName OPTIONAL)
{
  if (gEfiShellProtocol != NULL) {
    return (gEfiShellProtocol->GetCurDir (DeviceName));
  }
  if (mEfiShellEnvironment2 != NULL) {
    return (mEfiShellEnvironment2->CurDir (DeviceName));
  }
  return (NULL);
}