mirror of https://github.com/acidanthera/audk.git
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:
parent
c39940b534
commit
1d5825abc5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue