Update the code to follow the spec when evaluate the expression.
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12973 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -931,6 +931,7 @@ GetSelectionInputPopUp (
|
||||
QUESTION_OPTION *OneOfOption;
|
||||
QUESTION_OPTION *CurrentOption;
|
||||
FORM_BROWSER_STATEMENT *Question;
|
||||
INTN Result;
|
||||
|
||||
DimensionsWidth = gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn;
|
||||
|
||||
@ -1035,7 +1036,7 @@ GetSelectionInputPopUp (
|
||||
}
|
||||
FreePool (StringPtr);
|
||||
|
||||
if (!OrderedList && CompareHiiValue (&Question->HiiValue, &OneOfOption->Value, NULL) == 0) {
|
||||
if (!OrderedList && (CompareHiiValue (&Question->HiiValue, &OneOfOption->Value, &Result, NULL) == EFI_SUCCESS) && (Result == 0)) {
|
||||
//
|
||||
// Find current selected Option for OneOf
|
||||
//
|
||||
|
Reference in New Issue
Block a user