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
This commit is contained in:
qhuang8 2007-10-22 09:13:52 +00:00
parent 8809fb07fb
commit 0cadafc882
1 changed files with 7 additions and 5 deletions

View File

@ -957,6 +957,11 @@ Returns:
return Status; return Status;
} }
Status = ConSplitterTextInAddDevice (&mConIn, TextIn);
if (EFI_ERROR (Status)) {
return Status;
}
Status = gBS->OpenProtocol ( Status = gBS->OpenProtocol (
ControllerHandle, ControllerHandle,
&gEfiSimpleTextInputExProtocolGuid, &gEfiSimpleTextInputExProtocolGuid,
@ -970,11 +975,8 @@ Returns:
} }
Status = ConSplitterTextInExAddDevice (&mConIn, TextInEx); Status = ConSplitterTextInExAddDevice (&mConIn, TextInEx);
if (EFI_ERROR (Status)) {
return Status; return Status;
}
return ConSplitterTextInAddDevice (&mConIn, TextIn);
} }
EFI_STATUS EFI_STATUS