From 62b658dd7fc1a617b2bfc81b58d168a6ecb10608 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 13 Oct 2009 00:46:36 +0000 Subject: Fix the incorrect check for IFR OnfOf opcode. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9338 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg/Library/UefiHiiLib') diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c index df73b7b3a1..ba197fd7f9 100644 --- a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c +++ b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c @@ -1537,7 +1537,7 @@ InternalHiiValidateCurrentSetting ( // // OneOf value doesn't belong to one of option value. // - if (VarBlockData.OpCode == EFI_IFR_ONE_OF_OP) { + if ((VarBlockData.Scope == 0) && (VarBlockData.OpCode == EFI_IFR_ONE_OF_OP)) { Status = EFI_INVALID_PARAMETER; goto Done; } -- cgit v1.2.3