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
This commit is contained in:
lgao4 2009-10-13 00:46:36 +00:00
parent 15cc889129
commit 62b658dd7f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}