]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
cleanup function and eliminate build error.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Edit / MainTextEditor.c
index 460433e373c50869c35439d30111be190640c995..c5e47b105b9e03b5d95553ff951537c00bfb9343 100644 (file)
@@ -88,7 +88,7 @@ MainCommandSaveFile (
   );\r
 \r
 /**\r
-  show help menu.\r
+  Show help information for the editor.\r
 \r
   @retval EFI_SUCCESS             The operation was successful.\r
 **/\r
@@ -1350,7 +1350,7 @@ MainCommandSaveFile (
 }\r
 \r
 /**\r
-  show help menu.\r
+  Show help information for the editor.\r
 \r
   @retval EFI_SUCCESS             The operation was successful.\r
 **/\r
@@ -1359,22 +1359,28 @@ MainCommandDisplayHelp (
   VOID\r
   )\r
 {\r
-  INTN     CurrentLine=0;\r
-  CHAR16 InfoString;\r
-  EFI_INPUT_KEY  Key;\r
+  INT32           CurrentLine;\r
+  CHAR16          *InfoString;\r
+  EFI_INPUT_KEY   Key;\r
   \r
+  //\r
   // print helpInfo      \r
+  //\r
   for (CurrentLine = 0; 0 != MainMenuHelpInfo[CurrentLine]; CurrentLine++) {\r
     InfoString = HiiGetString(gShellDebug1HiiHandle, MainMenuHelpInfo[CurrentLine], NULL);\r
-    ShellPrintEx (0,CurrentLine+1,L"%E%s%N",InfoString);        \r
+    ShellPrintEx (0, CurrentLine+1, L"%E%s%N", InfoString);        \r
   }\r
   \r
+  //\r
   // scan for ctrl+w\r
+  //\r
   do {\r
     gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
   } while(SCAN_CONTROL_W != Key.UnicodeChar); \r
 \r
+  //\r
   // update screen with file buffer's info\r
+  //\r
   FileBufferRestorePosition ();\r
   FileBufferNeedRefresh = TRUE;\r
   FileBufferOnlyLineNeedRefresh = FALSE;\r