diff options
Diffstat (limited to 'UnixPkg')
-rw-r--r-- | UnixPkg/CpuRuntimeDxe/Cpu.c | 9 | ||||
-rw-r--r-- | UnixPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c | 13 |
2 files changed, 16 insertions, 6 deletions
diff --git a/UnixPkg/CpuRuntimeDxe/Cpu.c b/UnixPkg/CpuRuntimeDxe/Cpu.c index aef2c30ccd..f2541ee994 100644 --- a/UnixPkg/CpuRuntimeDxe/Cpu.c +++ b/UnixPkg/CpuRuntimeDxe/Cpu.c @@ -451,8 +451,13 @@ Returns: //
// Initialize strings to HII database
//
- HiiLibAddPackages (1, &gEfiProcessorProducerGuid, NULL, &HiiHandle, CpuStrings);
-
+ HiiHandle = HiiAddPackages (
+ &gEfiProcessorProducerGuid,
+ NULL,
+ CpuStrings,
+ NULL
+ );
+ ASSERT (HiiHandle != NULL);
CopyMem (RecordBuffer.Raw, &mCpuDataRecordHeader, HeaderSize);
diff --git a/UnixPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c b/UnixPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c index de8d8ef6f0..553289668f 100644 --- a/UnixPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c +++ b/UnixPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c @@ -181,12 +181,17 @@ Returns: //
// Add our default strings to the HII database. They will be modified later.
//
- HiiLibAddPackages (1, &gEfiMiscSubClassGuid, NULL, &HiiHandle, MiscSubclassStrings);
-
- if (EFI_ERROR (EfiStatus)) {
+ HiiHandle = HiiAddPackages (
+ &gEfiMiscSubClassGuid,
+ NULL,
+ MiscSubclassStrings,
+ NULL
+ );
+ if (HiiHandle == NULL) {
DEBUG ((EFI_D_ERROR, "Could not log default strings to Hii. %r\n", EfiStatus));
- return EfiStatus;
+ return EFI_OUT_OF_RESOURCES;
}
+
//
//
//
|