Fix the incorrect check for IFR OnfOf opcode.
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 13 Oct 2009 00:46:36 +0000 (00:46 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 13 Oct 2009 00:46:36 +0000 (00:46 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@9338 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Library/UefiHiiLib/HiiLib.c

index df73b7b..ba197fd 100644 (file)
@@ -1537,7 +1537,7 @@ InternalHiiValidateCurrentSetting (
           //\r
           // OneOf value doesn't belong to one of option value. \r
           //\r
-          if (VarBlockData.OpCode == EFI_IFR_ONE_OF_OP) {\r
+          if ((VarBlockData.Scope == 0) && (VarBlockData.OpCode == EFI_IFR_ONE_OF_OP)) {\r
             Status = EFI_INVALID_PARAMETER;\r
             goto Done;\r
           }\r