From 0cadafc8822c57fe1482f8f795a920e5b31271a6 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 22 Oct 2007 09:13:52 +0000 Subject: [PATCH] Add ConIn device even if SimpleTextInputEx Protocol is not available for backward compatibility. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4192 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/Console/ConSplitterDxe/ConSplitter.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c index 93edf82ed6..f100d04688 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c @@ -957,6 +957,11 @@ Returns: return Status; } + Status = ConSplitterTextInAddDevice (&mConIn, TextIn); + if (EFI_ERROR (Status)) { + return Status; + } + Status = gBS->OpenProtocol ( ControllerHandle, &gEfiSimpleTextInputExProtocolGuid, @@ -970,11 +975,8 @@ Returns: } Status = ConSplitterTextInExAddDevice (&mConIn, TextInEx); - if (EFI_ERROR (Status)) { - return Status; - } - - return ConSplitterTextInAddDevice (&mConIn, TextIn); + + return Status; } EFI_STATUS