]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/[hex]edit: Fix wrongly use gST->ConIn as the console handle
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 12 Feb 2018 15:32:22 +0000 (23:32 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 13 Feb 2018 02:54:45 +0000 (10:54 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c

index a197f80a40f6606ec42091236c5b96dd18886afd..4eb998bf5fbad27f9b6b00d9dd46d59287df4b04 100644 (file)
@@ -1497,7 +1497,7 @@ MainEditorInit (
   // Find mouse in System Table ConsoleInHandle\r
   //\r
   Status = gBS->HandleProtocol (\r
-                gST->ConIn,\r
+                gST->ConsoleInHandle,\r
                 &gEfiSimplePointerProtocolGuid,\r
                 (VOID**)&MainEditor.MouseInterface\r
                 );\r
index 065f8e95a706673e0693e6fb0ae67ccf861bf9b9..2b096d71688a39824ca2a38dc7889b4710bfced7 100644 (file)
@@ -1682,7 +1682,7 @@ HMainEditorInit (
   // Find mouse in System Table ConsoleInHandle\r
   //\r
   Status = gBS->HandleProtocol (\r
-                gST->ConIn,\r
+                gST->ConsoleInHandle,\r
                 &gEfiSimplePointerProtocolGuid,\r
                 (VOID**)&HMainEditor.MouseInterface\r
                 );\r