diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-08-30 09:57:59 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-08-31 11:14:01 +0800 |
commit | 39cde03cc5efd67c11dc75cd5ba5e8ccf55c5594 (patch) | |
tree | d4d827b1e200cddc07aa3103979ff8df88bbc3a7 /MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | |
parent | dc2109946df2522974a058b0bca5530befdea1cd (diff) | |
download | edk2-platforms-39cde03cc5efd67c11dc75cd5ba5e8ccf55c5594.tar.xz |
MdeModulePkg: Use IsZeroGuid API for zero GUID checking
Instead of comparing a GUID with gZeroGuid via the CompareGuid API, the
commit uses the IsZeroGuid API to check if the given GUID is a zero GUID.
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@Intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Setup.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index 00f4b4136c..3f368b54ec 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c @@ -181,7 +181,7 @@ UiFindMenuList ( // Find the same FromSet.
//
if (MenuList->HiiHandle == HiiHandle) {
- if (CompareGuid (&MenuList->FormSetGuid, &gZeroGuid)) {
+ if (IsZeroGuid (&MenuList->FormSetGuid)) {
//
// FormSetGuid is not specified.
//
@@ -5689,7 +5689,7 @@ GetIfrBinaryData ( //
// Try to compare against formset GUID
//
- if (CompareGuid (FormSetGuid, &gZeroGuid) ||
+ if (IsZeroGuid (FormSetGuid) ||
CompareGuid (ComparingGuid, (EFI_GUID *)(OpCodeData + sizeof (EFI_IFR_OP_HEADER)))) {
break;
}
|