mirror of https://github.com/acidanthera/audk.git
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:
parent
04bbf1f3f0
commit
feccc28a6f
|
@ -88,7 +88,7 @@ MainCommandSaveFile (
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
show help menu.
|
Show help information for the editor.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation was successful.
|
@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.
|
@retval EFI_SUCCESS The operation was successful.
|
||||||
**/
|
**/
|
||||||
|
@ -1359,22 +1359,28 @@ MainCommandDisplayHelp (
|
||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
INTN CurrentLine=0;
|
INT32 CurrentLine;
|
||||||
CHAR16 * InfoString;
|
CHAR16 *InfoString;
|
||||||
EFI_INPUT_KEY Key;
|
EFI_INPUT_KEY Key;
|
||||||
|
|
||||||
|
//
|
||||||
// print helpInfo
|
// print helpInfo
|
||||||
|
//
|
||||||
for (CurrentLine = 0; 0 != MainMenuHelpInfo[CurrentLine]; CurrentLine++) {
|
for (CurrentLine = 0; 0 != MainMenuHelpInfo[CurrentLine]; CurrentLine++) {
|
||||||
InfoString = HiiGetString(gShellDebug1HiiHandle, MainMenuHelpInfo[CurrentLine], NULL);
|
InfoString = HiiGetString(gShellDebug1HiiHandle, MainMenuHelpInfo[CurrentLine], NULL);
|
||||||
ShellPrintEx (0,CurrentLine+1,L"%E%s%N",InfoString);
|
ShellPrintEx (0, CurrentLine+1, L"%E%s%N", InfoString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
// scan for ctrl+w
|
// scan for ctrl+w
|
||||||
|
//
|
||||||
do {
|
do {
|
||||||
gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);
|
gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);
|
||||||
} while(SCAN_CONTROL_W != Key.UnicodeChar);
|
} while(SCAN_CONTROL_W != Key.UnicodeChar);
|
||||||
|
|
||||||
|
//
|
||||||
// update screen with file buffer's info
|
// update screen with file buffer's info
|
||||||
|
//
|
||||||
FileBufferRestorePosition ();
|
FileBufferRestorePosition ();
|
||||||
FileBufferNeedRefresh = TRUE;
|
FileBufferNeedRefresh = TRUE;
|
||||||
FileBufferOnlyLineNeedRefresh = FALSE;
|
FileBufferOnlyLineNeedRefresh = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue