Update to support to produce Component Name and & Component Name 2 protocol based on Feature flag PcdComponentNameDisable & PcdComponentName2Disable.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3991 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2007-09-29 11:22:46 +00:00
parent f766bd800a
commit e6e53c97c9
3 changed files with 248 additions and 80 deletions

View File

@@ -80,14 +80,13 @@ InitializeWinNtGop(
//
// Install driver model protocol(s).
//
Status = EfiLibInstallAllDriverProtocols (
Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gWinNtGopDriverBinding,
ImageHandle,
&gWinNtGopComponentName,
NULL,
NULL
&gWinNtGopComponentName2
);
ASSERT_EFI_ERROR (Status);
@@ -200,12 +199,21 @@ WinNtGopDriverBindingStart (
Private->ControllerNameTable = NULL;
AddUnicodeString (
AddUnicodeString2 (
"eng",
gWinNtGopComponentName.SupportedLanguages,
&Private->ControllerNameTable,
WinNtIo->EnvString
WinNtIo->EnvString,
TRUE
);
AddUnicodeString2 (
"en",
gWinNtGopComponentName2.SupportedLanguages,
&Private->ControllerNameTable,
WinNtIo->EnvString,
FALSE
);
Private->WindowName = WinNtIo->EnvString;