/** @file\r
Utility functions for User Interface functions.\r
\r
-Copyright (c) 2004 - 2007, Intel Corporation\r
+Copyright (c) 2004 - 2008, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
}\r
};\r
\r
+BOOLEAN mInputError;\r
+\r
\r
/**\r
Set Buffer to Value for Size bytes.\r
)\r
{\r
UINTN Index;\r
- STATIC BOOLEAN InputError;\r
CHAR16 *NvUpdateMessage;\r
CHAR16 *InputErrorMessage;\r
\r
gScreenDimensions.BottomRow - 1,\r
InputErrorMessage\r
);\r
- InputError = TRUE;\r
+ mInputError = TRUE;\r
} else {\r
gST->ConOut->SetAttribute (gST->ConOut, FIELD_TEXT_HIGHLIGHT);\r
for (Index = 0; Index < (GetStringWidth (InputErrorMessage) - 2) / 2; Index++) {\r
PrintAt (gScreenDimensions.LeftColumn + gPromptBlockWidth + Index, gScreenDimensions.BottomRow - 1, L" ");\r
}\r
\r
- InputError = FALSE;\r
+ mInputError = FALSE;\r
}\r
break;\r
\r
break;\r
\r
case REFRESH_STATUS_BAR:\r
- if (InputError) {\r
+ if (mInputError) {\r
UpdateStatusBar (INPUT_ERROR, Flags, TRUE);\r
}\r
\r
}\r
\r
\r
-STATIC BOOLEAN GetLineByWidthFinished = FALSE;\r
+BOOLEAN GetLineByWidthFinished = FALSE;\r
\r
/**\r
Will copy LineWidth amount of a string in the OutputString buffer and return the\r
gDirection = SCAN_LEFT;\r
}\r
Status = ProcessOptions (Selection, MenuOption, TRUE, &OptionString);\r
- SafeFreePool (OptionString);\r
+ if (OptionString != NULL) {\r
+ FreePool (OptionString);\r
+ }\r
}\r
break;\r
\r