/* Find Hii variable node by name and GUID. */
VAR_CHECK_HII_VARIABLE_NODE* FindHiiVariableNode(IN CHAR16 *Name, IN EFI_GUID *Guid)
/* Find Hii variable node by name and GUID. */
VAR_CHECK_HII_VARIABLE_NODE* FindHiiVariableNode(IN CHAR16 *Name, IN EFI_GUID *Guid)
{
  VAR_CHECK_HII_VARIABLE_NODE  *HiiVariableNode;
  LIST_ENTRY                   *Link;
  for (Link = mVarCheckHiiList.ForwardLink
       ; Link != &mVarCheckHiiList
       ; Link = Link->ForwardLink)
  {
    HiiVariableNode = VAR_CHECK_HII_VARIABLE_FROM_LINK (Link);
    if ((StrCmp (Name, (CHAR16 *)(HiiVariableNode->HiiVariable + 1)) == 0) &&
        CompareGuid (Guid, &HiiVariableNode->HiiVariable->Guid))
    {
      return HiiVariableNode;
    }
  }
  return NULL;
}