MdeModulePkg DisplayEngineDxe: Correct the local variable name.

Signed-off-by: gechao <gechao@greatwall.com.cn>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
gechao 2020-11-12 09:33:58 +08:00 committed by mergify[bot]
parent b470520d75
commit 544cb0132d
1 changed files with 8 additions and 8 deletions

View File

@ -372,7 +372,7 @@ GetWidth (
{
CHAR16 *String;
UINTN Size;
EFI_IFR_TEXT *TestOp;
EFI_IFR_TEXT *TextOp;
UINT16 ReturnWidth;
FORM_DISPLAY_ENGINE_STATEMENT *Statement;
@ -394,9 +394,9 @@ GetWidth (
// See if the second text parameter is really NULL
//
if (Statement->OpCode->OpCode == EFI_IFR_TEXT_OP) {
TestOp = (EFI_IFR_TEXT *) Statement->OpCode;
if (TestOp->TextTwo != 0) {
String = GetToken (TestOp->TextTwo, gFormData->HiiHandle);
TextOp = (EFI_IFR_TEXT *) Statement->OpCode;
if (TextOp->TextTwo != 0) {
String = GetToken (TextOp->TextTwo, gFormData->HiiHandle);
Size = StrLen (String);
FreePool (String);
}
@ -2166,7 +2166,7 @@ HasOptionString (
FORM_DISPLAY_ENGINE_STATEMENT *Statement;
CHAR16 *String;
UINTN Size;
EFI_IFR_TEXT *TestOp;
EFI_IFR_TEXT *TextOp;
Size = 0;
Statement = MenuOption->ThisTag;
@ -2175,9 +2175,9 @@ HasOptionString (
// See if the second text parameter is really NULL
//
if (Statement->OpCode->OpCode == EFI_IFR_TEXT_OP) {
TestOp = (EFI_IFR_TEXT *) Statement->OpCode;
if (TestOp->TextTwo != 0) {
String = GetToken (TestOp->TextTwo, gFormData->HiiHandle);
TextOp = (EFI_IFR_TEXT *) Statement->OpCode;
if (TextOp->TextTwo != 0) {
String = GetToken (TextOp->TextTwo, gFormData->HiiHandle);
Size = StrLen (String);
FreePool (String);
}