ShellPkg/[hex]edit: Fix wrongly use gST->ConIn as the console handle

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
Ruiyu Ni 2018-02-12 23:32:22 +08:00
parent 5563281fa2
commit f110b7734b
2 changed files with 2 additions and 2 deletions

View File

@ -1497,7 +1497,7 @@ MainEditorInit (
// Find mouse in System Table ConsoleInHandle
//
Status = gBS->HandleProtocol (
gST->ConIn,
gST->ConsoleInHandle,
&gEfiSimplePointerProtocolGuid,
(VOID**)&MainEditor.MouseInterface
);

View File

@ -1682,7 +1682,7 @@ HMainEditorInit (
// Find mouse in System Table ConsoleInHandle
//
Status = gBS->HandleProtocol (
gST->ConIn,
gST->ConsoleInHandle,
&gEfiSimplePointerProtocolGuid,
(VOID**)&HMainEditor.MouseInterface
);