summaryrefslogtreecommitdiffstats
path: root/Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c')
-rw-r--r--Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c b/Nt32Pkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c
index 4384697757..8c2bcc19ea 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;
}
//
//