summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-22 09:13:52 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-22 09:13:52 +0000
commit0cadafc8822c57fe1482f8f795a920e5b31271a6 (patch)
tree588ec1036bad45d8e7a077ac04065b8c8a492a8a /MdeModulePkg
parent8809fb07fb3ee96568a7d9e7019af9549fcf38a6 (diff)
downloadedk2-platforms-0cadafc8822c57fe1482f8f795a920e5b31271a6.tar.xz
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c12
1 files 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