summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-29 11:27:09 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-29 11:27:09 +0000
commit6c28f1182f51404e8e341740c3e548b0c63d0d1d (patch)
treecf6912c6971e30f3fce6d2b46521227df41e5468 /Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
parent04369cd8fc2523bd45dccb1f615f97c950ed3c63 (diff)
downloadedk2-platforms-6c28f1182f51404e8e341740c3e548b0c63d0d1d.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@3993 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c')
-rw-r--r--Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c b/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
index 62cb47960d..92fb38415f 100644
--- a/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
+++ b/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
@@ -83,14 +83,13 @@ InitializeWinNtSimpleFileSystem(
//
// Install driver model protocol(s).
//
- Status = EfiLibInstallAllDriverProtocols (
+ Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gWinNtSimpleFileSystemDriverBinding,
ImageHandle,
&gWinNtSimpleFileSystemComponentName,
- NULL,
- NULL
+ &gWinNtSimpleFileSystemComponentName2
);
ASSERT_EFI_ERROR (Status);
@@ -373,12 +372,21 @@ Returns:
Private->ControllerNameTable = NULL;
- AddUnicodeString (
+ AddUnicodeString2 (
"eng",
gWinNtSimpleFileSystemComponentName.SupportedLanguages,
&Private->ControllerNameTable,
- WinNtIo->EnvString
+ WinNtIo->EnvString,
+ TRUE
);
+ AddUnicodeString2 (
+ "en",
+ gWinNtSimpleFileSystemComponentName2.SupportedLanguages,
+ &Private->ControllerNameTable,
+ WinNtIo->EnvString,
+ FALSE
+ );
+
Status = gBS->InstallMultipleProtocolInterfaces (
&ControllerHandle,