Fix the bug that the wrong classguid is compared.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9930 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2010-02-04 09:35:42 +00:00
parent d60c5b3127
commit 32e9da0c40
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,7 @@ ExtractDisplayedHiiFormFromHiiHandle (
//
// Find FormSet OpCode
//
ClassGuidNum = ((EFI_IFR_FORM_SET *) OpCodeData)->Flags;
ClassGuidNum = ((EFI_IFR_FORM_SET *) OpCodeData)->Flags & 0x3;
ClassGuid = (EFI_GUID *) (VOID *)(OpCodeData + sizeof (EFI_IFR_FORM_SET));
while (ClassGuidNum-- > 0) {
if (CompareGuid (SetupClassGuid, ClassGuid)) {
@ -307,6 +307,7 @@ ExtractDisplayedHiiFormFromHiiHandle (
FreePool (HiiPackageList);
return TRUE;
}
ClassGuid ++;
}
} else {
CopyMem (FormSetTitle, &((EFI_IFR_FORM_SET *) OpCodeData)->FormSetTitle, sizeof (EFI_STRING_ID));