-/*++\r
+/**@file\r
\r
Copyright (c) 2006 - 2007, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
This driver parses the mMiscSubclassDataTable structure and reports\r
any generated data to the DataHub.\r
\r
---*/\r
+**/\r
\r
#include "MiscSubclassDriver.h"\r
\r
//\r
// Locate data hub protocol.\r
//\r
- Status = gBS->LocateProtocol (&gEfiDataHubProtocolGuid, NULL, &DataHub);\r
+ Status = gBS->LocateProtocol (&gEfiDataHubProtocolGuid, NULL, (VOID**)&DataHub);\r
\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_ERROR, "Could not locate DataHub protocol. %r\n", Status));\r
//\r
// Add our default strings to the HII database. They will be modified later.\r
//\r
- HiiLibAddPackagesToHiiDatabase (1, &gEfiMiscSubClassGuid, NULL, &HiiHandle, MiscSubclassStrings);\r
-\r
- if (EFI_ERROR (Status)) {\r
+ HiiHandle = HiiAddPackages (\r
+ &gEfiMiscSubClassGuid,\r
+ NULL,\r
+ MiscSubclassStrings,\r
+ NULL\r
+ );\r
+ if (HiiHandle == NULL) {\r
DEBUG ((EFI_D_ERROR, "Could not log default strings to Hii. %r\n", Status));\r
- return Status;\r
+ return EFI_OUT_OF_RESOURCES;\r
}\r
//\r
//\r