summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-31 08:08:10 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-31 08:08:10 +0000
commit8f42067688d673ef3fdb6de3d653072053190b52 (patch)
treea3b5be8edaa794821a1ae2936479eb95d867a763 /MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c
parent31585af434890ea0db774b6c5fa827ac354bee60 (diff)
downloadedk2-platforms-8f42067688d673ef3fdb6de3d653072053190b52.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c b/MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c
index 81d3280145..c388247a88 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/ProcessOptions.c
@@ -84,12 +84,13 @@ ValueToOption (
{
LIST_ENTRY *Link;
QUESTION_OPTION *Option;
+ INTN Result;
Link = GetFirstNode (&Question->OptionListHead);
while (!IsNull (&Question->OptionListHead, Link)) {
Option = QUESTION_OPTION_FROM_LINK (Link);
- if (CompareHiiValue (&Option->Value, OptionValue, NULL) == 0) {
+ if ((CompareHiiValue (&Option->Value, OptionValue, &Result, NULL) == EFI_SUCCESS) && (Result == 0)) {
return Option;
}