diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-29 11:22:46 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-29 11:22:46 +0000 |
commit | e6e53c97c943d7a93c17871668ee18a900e8da05 (patch) | |
tree | 4415e24534d6543a0f1eb69656e710ea489ae002 /Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c | |
parent | f766bd800a9f154781ffbb035280d3a4e6c3978f (diff) | |
download | edk2-platforms-e6e53c97c943d7a93c17871668ee18a900e8da05.tar.xz |
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
Diffstat (limited to 'Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c')
-rw-r--r-- | Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c b/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c index 5f41e29e19..5f1f2c1cf0 100644 --- a/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c +++ b/Nt32Pkg/WinNtGopDxe/WinNtGopDriver.c @@ -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;
|