diff options
Diffstat (limited to 'UnixPkg/CpuRuntimeDxe/Cpu.c')
-rw-r--r-- | UnixPkg/CpuRuntimeDxe/Cpu.c | 9 |
1 files changed, 7 insertions, 2 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);
|