diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-03 10:53:35 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-03 10:53:35 +0000 |
commit | 1d5825abc56f3af7444641104ef234b264c79fce (patch) | |
tree | 7352a74436e54362f2c28652ccd6da173c6c24bd /MdeModulePkg/Universal/SetupBrowserDxe | |
parent | c39940b534cb917b1635d4dcb7ac8be5d37b8080 (diff) | |
download | edk2-1d5825abc56f3af7444641104ef234b264c79fce.zip edk2-1d5825abc56f3af7444641104ef234b264c79fce.tar.gz edk2-1d5825abc56f3af7444641104ef234b264c79fce.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 1f40058..3a9a8bc 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; |