mirror of https://github.com/acidanthera/audk.git
Fixed one bug in consplitter console input Start/Stop functions for those handlers only produce SimpleTextIn and not produce SimpleTextEx protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5914 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
205564ad9b
commit
04b9f76313
|
@ -12,11 +12,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
|
||||
**/
|
||||
|
||||
//
|
||||
// Include common header file for this module.
|
||||
//
|
||||
|
||||
|
||||
#include <ConPlatform.h>
|
||||
|
||||
//
|
||||
|
|
|
@ -1094,14 +1094,13 @@ ConSplitterConInDriverBindingStart (
|
|||
mConIn.VirtualHandle,
|
||||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// Add this device into Text In Ex devices list.
|
||||
// If Simple Text Input Ex protocol exists,
|
||||
// add this device into Text In Ex devices list.
|
||||
//
|
||||
Status = ConSplitterTextInExAddDevice (&mConIn, TextInEx);
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
@ -1457,8 +1456,8 @@ ConSplitterConInDriverBindingStop (
|
|||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn;
|
||||
|
||||
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInEx;
|
||||
|
||||
if (NumberOfChildren == 0) {
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
@ -1471,18 +1470,16 @@ ConSplitterConInDriverBindingStop (
|
|||
ControllerHandle,
|
||||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// Remove device from Text Input Ex devices list.
|
||||
// If Simple Text Input Ex protocol exists,
|
||||
// remove device from Text Input Ex devices list.
|
||||
//
|
||||
Status = ConSplitterTextInExDeleteDevice (&mConIn, TextInEx);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// Close Simple Text In protocol on controller handle and virtual handle.
|
||||
|
|
Loading…
Reference in New Issue