/* This function will check if VendorGuid should be recorded and return the address of VendorGuid if it is needed. */
EFI_GUID* AssignVendorGuid(IN EFI_GUID *VendorGuid)
/* This function will check if VendorGuid should be recorded and return the address of VendorGuid if it is needed. */
EFI_GUID* AssignVendorGuid(IN EFI_GUID *VendorGuid)
{
  UINTN  Index;
  for (Index = 0; Index < sizeof (mVariableType)/sizeof (mVariableType[0]); Index++) {
    if (CompareGuid (VendorGuid, mVariableType[Index].VendorGuid)) {
      return mVariableType[Index].VendorGuid;
    }
  }
  return NULL;
}