mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/SetupBrowserDxe: Fix IsZeroGuid() ASSERT.
From the function description of GetIfrBinaryData(), FormSetGuid can be NULL. However, FormSetGuid is passed to IsZeroGuid(). This causes exception when FormSetGuid is NULL. Signed-off-by: Nickle Wang <nickle.wang@hpe.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
parent
64a228f5f8
commit
7d325f93e1
|
@ -2,6 +2,7 @@
|
|||
Entry and initialization module for the browser.
|
||||
|
||||
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
@ -5844,7 +5845,7 @@ GetIfrBinaryData (
|
|||
//
|
||||
// Try to compare against formset GUID
|
||||
//
|
||||
if (IsZeroGuid (FormSetGuid) ||
|
||||
if (IsZeroGuid (ComparingGuid) ||
|
||||
CompareGuid (ComparingGuid, (EFI_GUID *)(OpCodeData + sizeof (EFI_IFR_OP_HEADER)))) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue