summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-06-25 02:52:43 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-06-25 02:52:43 +0000
commitabda9e12b1f4e0223646bb0f1f7da8d59a64eb34 (patch)
tree495aeef2d95efa1c253cc8b3c623a35eb3991965
parent0de1895fd611d5855c072d2437379d340063ad4f (diff)
downloadedk2-platforms-abda9e12b1f4e0223646bb0f1f7da8d59a64eb34.tar.xz
Fix an issue in the implementation of GetDriverName() in Con splitter driver. We need to compare "This" paramter with all 5 protocol instances to decide whether it stands for CN or CN2.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5368 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c
index 927f7a5a68..72f782774b 100644
--- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c
+++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c
@@ -225,7 +225,11 @@ ConSplitterComponentNameGetDriverName (
This->SupportedLanguages,
mConSplitterDriverNameTable,
DriverName,
- (BOOLEAN)(This == &gConSplitterConInComponentName)
+ (BOOLEAN)((This == &gConSplitterConInComponentName) ||
+ (This == &gConSplitterSimplePointerComponentName) ||
+ (This == &gConSplitterAbsolutePointerComponentName) ||
+ (This == &gConSplitterConOutComponentName) ||
+ (This == &gConSplitterStdErrComponentName))
);
}