OptionMap->Guid may not align on UINT32 baundary.
authorqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 29 Aug 2008 06:47:11 +0000 (06:47 +0000)
committerqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 29 Aug 2008 06:47:11 +0000 (06:47 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@5755 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Utility.c

index 8208b81..e1be2f5 100644 (file)
@@ -429,7 +429,7 @@ CreateQuestionIdMap (
               \r
               InsertTailList (OneOfOptinMapEntryListHead, &OneOfOptionMapEntry->Link);\r
             }\r
-          }else if (CompareGuid (&OptionMap->Guid, &gTianoHiiIfrGuid)) {\r
+          }else if (CompareMem (&OptionMap->Guid, &gTianoHiiIfrGuid, sizeof (EFI_GUID))) {\r
             Class = (EFI_IFR_GUID_CLASS *) OpCode;\r
 \r
             switch (Class->ExtendOpCode) {\r