summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-17 05:45:32 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-17 05:45:32 +0000
commitd6a6483cad4d28f141ba3916deee68a31b45cb9e (patch)
tree35740eeba4f5ace498b7ab1b9a6cf1e746c74c32 /MdeModulePkg/Library
parent0b3f5a4dfd2e7acf36903bb4a8e210aef4225a55 (diff)
downloadedk2-d6a6483cad4d28f141ba3916deee68a31b45cb9e.zip
edk2-d6a6483cad4d28f141ba3916deee68a31b45cb9e.tar.gz
edk2-d6a6483cad4d28f141ba3916deee68a31b45cb9e.tar.bz2
Remove unused IfrSupportLib and ExtendedIfrSupportLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8119 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r--MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.c b/MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.c
index 5cecf56..b31b737 100644
--- a/MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.c
+++ b/MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.c
@@ -79,30 +79,35 @@ UefiHiiServicesLibConstructor (
IN EFI_SYSTEM_TABLE *SystemTable
)
{
+ EFI_STATUS Status;
+
//
- // Retrieve the pointer to the UEFI HII Font Protocol
+ // Retrieve the pointer to the UEFI HII String Protocol
//
- gBS->LocateProtocol (&gEfiHiiFontProtocolGuid, NULL, (VOID **) &gHiiFont);
+ Status = gBS->LocateProtocol (&gEfiHiiStringProtocolGuid, NULL, (VOID **) &gHiiString);
+ ASSERT_EFI_ERROR (Status);
//
- // Retrieve the pointer to the UEFI HII String Protocol
+ // Retrieve the pointer to the UEFI HII Database Protocol
//
- gBS->LocateProtocol (&gEfiHiiStringProtocolGuid, NULL, (VOID **) &gHiiString);
+ Status = gBS->LocateProtocol (&gEfiHiiDatabaseProtocolGuid, NULL, (VOID **) &gHiiDatabase);
+ ASSERT_EFI_ERROR (Status);
//
- // Retrieve the pointer to the UEFI HII Image Protocol
+ // Retrieve the pointer to the UEFI HII Config Routing Protocol
//
- gBS->LocateProtocol (&gEfiHiiImageProtocolGuid, NULL, (VOID **) &gHiiImage);
+ Status = gBS->LocateProtocol (&gEfiHiiConfigRoutingProtocolGuid, NULL, (VOID **) &gHiiConfigRouting);
+ ASSERT_EFI_ERROR (Status);
//
- // Retrieve the pointer to the UEFI HII Database Protocol
+ // Retrieve the pointer to the optional UEFI HII Font Protocol
//
- gBS->LocateProtocol (&gEfiHiiDatabaseProtocolGuid, NULL, (VOID **) &gHiiDatabase);
+ gBS->LocateProtocol (&gEfiHiiFontProtocolGuid, NULL, (VOID **) &gHiiFont);
//
- // Retrieve the pointer to the UEFI HII Config Routing Protocol
+ // Retrieve the pointer to the optional UEFI HII Image Protocol
//
- gBS->LocateProtocol (&gEfiHiiConfigRoutingProtocolGuid, NULL, (VOID **) &gHiiConfigRouting);
+ gBS->LocateProtocol (&gEfiHiiImageProtocolGuid, NULL, (VOID **) &gHiiImage);
return EFI_SUCCESS;
}