/* Determin whether an SmbiosHandle has already in use. */
BOOLEAN EFIAPI CheckSmbiosHandleExistance(IN LIST_ENTRY *Head, IN EFI_SMBIOS_HANDLE Handle)
/* Determin whether an SmbiosHandle has already in use. */
BOOLEAN EFIAPI CheckSmbiosHandleExistance(IN LIST_ENTRY *Head, IN EFI_SMBIOS_HANDLE Handle)
{
  LIST_ENTRY           *Link;
  SMBIOS_HANDLE_ENTRY  *HandleEntry;
  for (Link = Head->ForwardLink; Link != Head; Link = Link->ForwardLink) {
    HandleEntry = SMBIOS_HANDLE_ENTRY_FROM_LINK (Link);
    if (HandleEntry->SmbiosHandle == Handle) {
      return TRUE;
    }
  }
  return FALSE;
}