From 1d5825abc56f3af7444641104ef234b264c79fce Mon Sep 17 00:00:00 2001 From: qwang12 Date: Wed, 3 Sep 2008 10:53:35 +0000 Subject: [PATCH] Use Numeric Opcode to host the backward compatibility as the VarEqVal in Framework is defined as UINT16 (Checkbox is only UIN8). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5803 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 1f40058581..3a9a8bc3b9 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -100,7 +100,7 @@ UpdateCheckBoxStringToken ( EFI_STATUS Status; ASSERT (Statement != NULL); - ASSERT (Statement->Operand == EFI_IFR_CHECKBOX_OP); + ASSERT (Statement->Operand == EFI_IFR_NUMERIC_OP); UnicodeValueToString (Str, 0, Statement->VarStoreInfo.VarName, MAXIMUM_VALUE_CHARACTERS - 1); @@ -186,7 +186,7 @@ CreateQuestion ( // Framework Compatibility // if (FeaturePcdGet (PcdFrameworkHiiCompatibilitySupport)) { - if ((*OpCodeData == EFI_IFR_CHECKBOX_OP) && IsNextOpCodeGuidedVarEqName (OpCodeData)) { + if ((*OpCodeData == EFI_IFR_NUMERIC_OP) && IsNextOpCodeGuidedVarEqName (OpCodeData)) { Status = UpdateCheckBoxStringToken (FormSet, Statement); if (EFI_ERROR (Status)) { return NULL;