]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c
ShellPkg: Fixed build error 'variable set but not used'
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / HexEdit / MainHexEditor.c
index fec71243156233ba43859cf0488696e6f193e626..a40388ff4097d4cb44fbd62ab687b0a29e018d02 100644 (file)
@@ -4,7 +4,7 @@
      - Instances of the other objects of the editor\r
      - Main Interfaces\r
   \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -50,8 +50,7 @@ HEFI_EDITOR_GLOBAL_EDITOR       HMainEditorBackupVar;
 HEFI_EDITOR_GLOBAL_EDITOR       HMainEditorConst = {\r
   &HBufferImage,\r
   {\r
-    0,\r
-    0\r
+    {0, 0}\r
   },\r
   {\r
     0,\r
@@ -106,10 +105,11 @@ HMainCommandDisplayHelp (
   VOID\r
   )\r
 {\r
-  INTN     CurrentLine=0;\r
+  INT32    CurrentLine;\r
   CHAR16 * InfoString;\r
   EFI_INPUT_KEY  Key;\r
-  \r
+\r
+  CurrentLine = 0;\r
   // print helpInfo      \r
   for (CurrentLine = 0; 0 != HexMainMenuHelpInfo[CurrentLine]; CurrentLine++) {\r
     InfoString = HiiGetString(gShellDebug1HiiHandle, HexMainMenuHelpInfo[CurrentLine]\r
@@ -598,7 +598,6 @@ HMainCommandCut (
   )\r
 {\r
   UINTN             Index;\r
-  HEFI_EDITOR_LINE  *Line;\r
   LIST_ENTRY    *Link;\r
   UINT8             *Buffer;\r
   UINTN             Count;\r
@@ -623,8 +622,6 @@ HMainCommandCut (
     Link = Link->ForwardLink;\r
   }\r
 \r
-  Line    = CR (Link, HEFI_EDITOR_LINE, Link, EFI_EDITOR_LINE_LIST);\r
-\r
   Count   = HMainEditor.SelectEnd - HMainEditor.SelectStart + 1;\r
   Buffer  = AllocateZeroPool (Count);\r
   if (Buffer == NULL) {\r
@@ -1687,7 +1684,7 @@ HMainEditorInit (
   //\r
   // below will call the five components' init function\r
   //\r
-  Status = MainTitleBarInit (NULL);\r
+  Status = MainTitleBarInit (L"UEFI HEXEDIT");\r
   if (EFI_ERROR (Status)) {\r
     ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_HEXEDIT_LIBEDITOR_MAINEDITOR_TITLE), gShellDebug1HiiHandle);\r
     return EFI_LOAD_ERROR;\r