From cb7d01c0c9fd199742d0fed6aa69dab0c79c3338 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Tue, 14 Apr 2009 10:47:19 +0000 Subject: HII Library Class interface refine. The "HiiLib" prefix for all HII Library API function names changed to "Hii". Remove: HiiLibPreparePackageList(), replaced by HiiAddPackages() HiiLibNewString(), replaced by HiiSetString() HiiLibGetStringFromHandle(), replaced by HiiGetString() HiiLibGetStringFromToken(), replaced by HiiGetPackageString() HiiLibExtractGuidFromHiiHandle() HiiLibDevicePathToHiiHandle() HiiLibGetSupportedSecondaryLanguages() HiiLibGetSupportedLanguageNumber() HiiLibExportPackageLists() HiiLibListPackageLists() Interface change: HiiAddPackages() HiiSetString() HiiGetString() HiiGetHiiHandles() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8083 6f19259b-4bc3-4df7-8a09-765794883524 --- Nt32Pkg/CpuRuntimeDxe/Cpu.c | 9 +++++++-- .../MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c | 12 ++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) (limited to 'Nt32Pkg') diff --git a/Nt32Pkg/CpuRuntimeDxe/Cpu.c b/Nt32Pkg/CpuRuntimeDxe/Cpu.c index 9cc2aea..d8d63d3 100644 --- a/Nt32Pkg/CpuRuntimeDxe/Cpu.c +++ b/Nt32Pkg/CpuRuntimeDxe/Cpu.c @@ -437,8 +437,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/Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c b/Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c index 4384697..8c2bcc1 100644 --- a/Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c +++ b/Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c @@ -180,11 +180,15 @@ Returns: // // Add our default strings to the HII database. They will be modified later. // - HiiLibAddPackages (1, &gEfiMiscSubClassGuid, NULL, &HiiHandle, MiscSubclassStrings); - - if (EFI_ERROR (Status)) { + HiiHandle = HiiAddPackages ( + &gEfiMiscSubClassGuid, + NULL, + MiscSubclassStrings, + NULL + ); + if (HiiHandle == NULL) { DEBUG ((EFI_D_ERROR, "Could not log default strings to Hii. %r\n", Status)); - return Status; + return EFI_OUT_OF_RESOURCES; } // // -- cgit v1.1