mirror of https://github.com/acidanthera/audk.git
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:
parent
d60c5b3127
commit
32e9da0c40
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue