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
This commit is contained in:
qwang12 2008-09-03 10:53:35 +00:00
parent c39940b534
commit 1d5825abc5
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ UpdateCheckBoxStringToken (
EFI_STATUS Status; EFI_STATUS Status;
ASSERT (Statement != NULL); 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); UnicodeValueToString (Str, 0, Statement->VarStoreInfo.VarName, MAXIMUM_VALUE_CHARACTERS - 1);
@ -186,7 +186,7 @@ CreateQuestion (
// Framework Compatibility // Framework Compatibility
// //
if (FeaturePcdGet (PcdFrameworkHiiCompatibilitySupport)) { if (FeaturePcdGet (PcdFrameworkHiiCompatibilitySupport)) {
if ((*OpCodeData == EFI_IFR_CHECKBOX_OP) && IsNextOpCodeGuidedVarEqName (OpCodeData)) { if ((*OpCodeData == EFI_IFR_NUMERIC_OP) && IsNextOpCodeGuidedVarEqName (OpCodeData)) {
Status = UpdateCheckBoxStringToken (FormSet, Statement); Status = UpdateCheckBoxStringToken (FormSet, Statement);
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
return NULL; return NULL;