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:
@ -1497,7 +1497,7 @@ MainEditorInit (
|
|||||||
// Find mouse in System Table ConsoleInHandle
|
// Find mouse in System Table ConsoleInHandle
|
||||||
//
|
//
|
||||||
Status = gBS->HandleProtocol (
|
Status = gBS->HandleProtocol (
|
||||||
gST->ConIn,
|
gST->ConsoleInHandle,
|
||||||
&gEfiSimplePointerProtocolGuid,
|
&gEfiSimplePointerProtocolGuid,
|
||||||
(VOID**)&MainEditor.MouseInterface
|
(VOID**)&MainEditor.MouseInterface
|
||||||
);
|
);
|
||||||
|
@ -1682,7 +1682,7 @@ HMainEditorInit (
|
|||||||
// Find mouse in System Table ConsoleInHandle
|
// Find mouse in System Table ConsoleInHandle
|
||||||
//
|
//
|
||||||
Status = gBS->HandleProtocol (
|
Status = gBS->HandleProtocol (
|
||||||
gST->ConIn,
|
gST->ConsoleInHandle,
|
||||||
&gEfiSimplePointerProtocolGuid,
|
&gEfiSimplePointerProtocolGuid,
|
||||||
(VOID**)&HMainEditor.MouseInterface
|
(VOID**)&HMainEditor.MouseInterface
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user