cleanup function and eliminate build error.

submitted-by:jcarsey
reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12069 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jcarsey 2011-08-01 15:18:19 +00:00
parent 04bbf1f3f0
commit feccc28a6f
1 changed files with 12 additions and 6 deletions

View File

@ -88,7 +88,7 @@ MainCommandSaveFile (
);
/**
show help menu.
Show help information for the editor.
@retval EFI_SUCCESS The operation was successful.
**/
@ -1350,7 +1350,7 @@ MainCommandSaveFile (
}
/**
show help menu.
Show help information for the editor.
@retval EFI_SUCCESS The operation was successful.
**/
@ -1359,22 +1359,28 @@ MainCommandDisplayHelp (
VOID
)
{
INTN CurrentLine=0;
INT32 CurrentLine;
CHAR16 *InfoString;
EFI_INPUT_KEY Key;
//
// print helpInfo
//
for (CurrentLine = 0; 0 != MainMenuHelpInfo[CurrentLine]; CurrentLine++) {
InfoString = HiiGetString(gShellDebug1HiiHandle, MainMenuHelpInfo[CurrentLine], NULL);
ShellPrintEx (0, CurrentLine+1, L"%E%s%N", InfoString);
}
//
// scan for ctrl+w
//
do {
gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);
} while(SCAN_CONTROL_W != Key.UnicodeChar);
//
// update screen with file buffer's info
//
FileBufferRestorePosition ();
FileBufferNeedRefresh = TRUE;
FileBufferOnlyLineNeedRefresh = FALSE;