summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c')
-rw-r--r--Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c31
1 files changed, 24 insertions, 7 deletions
diff --git a/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c b/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
index edcd9eb96d..932f7edb67 100644
--- a/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
+++ b/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c
@@ -175,14 +175,13 @@ InitializeWinNtBusDriver(
//
// Install driver model protocol(s).
//
- Status = EfiLibInstallAllDriverProtocols (
+ Status = EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gWinNtBusDriverBinding,
ImageHandle,
&gWinNtBusDriverComponentName,
- NULL,
- NULL
+ &gWinNtBusDriverComponentName2
);
ASSERT_EFI_ERROR (Status);
@@ -401,12 +400,21 @@ Returns:
WinNtBusDevice->Signature = WIN_NT_BUS_DEVICE_SIGNATURE;
WinNtBusDevice->ControllerNameTable = NULL;
- AddUnicodeString (
+ AddUnicodeString2 (
"eng",
gWinNtBusDriverComponentName.SupportedLanguages,
&WinNtBusDevice->ControllerNameTable,
- L"Windows Bus Controller"
+ L"Windows Bus Controller",
+ TRUE
);
+ AddUnicodeString2 (
+ "en",
+ gWinNtBusDriverComponentName2.SupportedLanguages,
+ &WinNtBusDevice->ControllerNameTable,
+ L"Windows Bus Controller",
+ FALSE
+ );
+
Status = gBS->InstallMultipleProtocolInterfaces (
&ControllerHandle,
@@ -516,12 +524,21 @@ Returns:
return EFI_OUT_OF_RESOURCES;
}
- AddUnicodeString (
+ AddUnicodeString2 (
"eng",
gWinNtBusDriverComponentName.SupportedLanguages,
&WinNtDevice->ControllerNameTable,
- ComponentName
+ ComponentName,
+ TRUE
);
+ AddUnicodeString2 (
+ "en",
+ gWinNtBusDriverComponentName2.SupportedLanguages,
+ &WinNtDevice->ControllerNameTable,
+ ComponentName,
+ FALSE
+ );
+
WinNtDevice->WinNtIo.TypeGuid = mPcdEnvironment[Index].DevicePathGuid;
WinNtDevice->WinNtIo.InstanceNumber = Count;