/* This code gets the pointer to the variable guid. */
EFI_GUID* GetVendorGuidPtr(IN VARIABLE_HEADER *Variable, IN BOOLEAN AuthFormat)
/* This code gets the pointer to the variable guid. */
EFI_GUID* GetVendorGuidPtr(IN VARIABLE_HEADER *Variable, IN BOOLEAN AuthFormat)
{
  AUTHENTICATED_VARIABLE_HEADER  *AuthVariable;
  AuthVariable = (AUTHENTICATED_VARIABLE_HEADER *)Variable;
  if (AuthFormat) {
    return &AuthVariable->VendorGuid;
  } else {
    return &Variable->VendorGuid;
  }
}