/* Find the path that was logged with the specified SHELL_FILE_HANDLE. */
CONST CHAR16* EFIAPI ShellFileHandleGetPath(IN CONST SHELL_FILE_HANDLE Handle)
/* Find the path that was logged with the specified SHELL_FILE_HANDLE. */
CONST CHAR16* EFIAPI ShellFileHandleGetPath(IN CONST SHELL_FILE_HANDLE Handle)
{
  BUFFER_LIST  *Node;
  for (Node = (BUFFER_LIST *)GetFirstNode (&mFileHandleList.Link)
       ; !IsNull (&mFileHandleList.Link, &Node->Link)
       ; Node = (BUFFER_LIST *)GetNextNode (&mFileHandleList.Link, &Node->Link)
       )
  {
    if ((Node->Buffer) && (((SHELL_COMMAND_FILE_HANDLE *)Node->Buffer)->FileHandle == Handle)) {
      return (((SHELL_COMMAND_FILE_HANDLE *)Node->Buffer)->Path);
    }
  }
  return (NULL);
}