mirror of https://github.com/acidanthera/audk.git
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:
parent
b470520d75
commit
544cb0132d
|
@ -372,7 +372,7 @@ GetWidth (
|
||||||
{
|
{
|
||||||
CHAR16 *String;
|
CHAR16 *String;
|
||||||
UINTN Size;
|
UINTN Size;
|
||||||
EFI_IFR_TEXT *TestOp;
|
EFI_IFR_TEXT *TextOp;
|
||||||
UINT16 ReturnWidth;
|
UINT16 ReturnWidth;
|
||||||
FORM_DISPLAY_ENGINE_STATEMENT *Statement;
|
FORM_DISPLAY_ENGINE_STATEMENT *Statement;
|
||||||
|
|
||||||
|
@ -394,9 +394,9 @@ GetWidth (
|
||||||
// See if the second text parameter is really NULL
|
// See if the second text parameter is really NULL
|
||||||
//
|
//
|
||||||
if (Statement->OpCode->OpCode == EFI_IFR_TEXT_OP) {
|
if (Statement->OpCode->OpCode == EFI_IFR_TEXT_OP) {
|
||||||
TestOp = (EFI_IFR_TEXT *) Statement->OpCode;
|
TextOp = (EFI_IFR_TEXT *) Statement->OpCode;
|
||||||
if (TestOp->TextTwo != 0) {
|
if (TextOp->TextTwo != 0) {
|
||||||
String = GetToken (TestOp->TextTwo, gFormData->HiiHandle);
|
String = GetToken (TextOp->TextTwo, gFormData->HiiHandle);
|
||||||
Size = StrLen (String);
|
Size = StrLen (String);
|
||||||
FreePool (String);
|
FreePool (String);
|
||||||
}
|
}
|
||||||
|
@ -2166,7 +2166,7 @@ HasOptionString (
|
||||||
FORM_DISPLAY_ENGINE_STATEMENT *Statement;
|
FORM_DISPLAY_ENGINE_STATEMENT *Statement;
|
||||||
CHAR16 *String;
|
CHAR16 *String;
|
||||||
UINTN Size;
|
UINTN Size;
|
||||||
EFI_IFR_TEXT *TestOp;
|
EFI_IFR_TEXT *TextOp;
|
||||||
|
|
||||||
Size = 0;
|
Size = 0;
|
||||||
Statement = MenuOption->ThisTag;
|
Statement = MenuOption->ThisTag;
|
||||||
|
@ -2175,9 +2175,9 @@ HasOptionString (
|
||||||
// See if the second text parameter is really NULL
|
// See if the second text parameter is really NULL
|
||||||
//
|
//
|
||||||
if (Statement->OpCode->OpCode == EFI_IFR_TEXT_OP) {
|
if (Statement->OpCode->OpCode == EFI_IFR_TEXT_OP) {
|
||||||
TestOp = (EFI_IFR_TEXT *) Statement->OpCode;
|
TextOp = (EFI_IFR_TEXT *) Statement->OpCode;
|
||||||
if (TestOp->TextTwo != 0) {
|
if (TextOp->TextTwo != 0) {
|
||||||
String = GetToken (TestOp->TextTwo, gFormData->HiiHandle);
|
String = GetToken (TextOp->TextTwo, gFormData->HiiHandle);
|
||||||
Size = StrLen (String);
|
Size = StrLen (String);
|
||||||
FreePool (String);
|
FreePool (String);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue