#include "BdsString.h"\r
#include "Language.h"\r
\r
-EFI_GUID gBdsStringPackGuid = { 0x7bac95d3, 0xddf, 0x42f3, 0x9e, 0x24, 0x7c, 0x64, 0x49, 0x40, 0x37, 0x9a };\r
-extern UINT8 PlatformBdsStrings[];\r
-\r
EFI_STATUS\r
InitializeStringSupport (\r
VOID\r
/*++\r
\r
Routine Description:\r
-\r
+ reset\r
Initialize HII global accessor for string support\r
\r
Arguments:\r
Status = gBS->LocateProtocol (\r
&gEfiHiiProtocolGuid,\r
NULL,\r
- &Hii\r
+ &gHii\r
);\r
if (!EFI_ERROR (Status)) {\r
- PackageList = PreparePackages (1, &gBdsStringPackGuid, PlatformBdsStrings);\r
- Status = Hii->NewPack (Hii, PackageList, &gStringPackHandle);\r
+ PackageList = PreparePackages (1, &gEfiCallerIdGuid, PlatformBdsStrings);\r
+ Status = gHii->NewPack (gHii, PackageList, &gStringPackHandle);\r
FreePool (PackageList);\r
}\r
\r
//\r
// Get the current string for the current Language\r
//\r
- Status = Hii->GetString (Hii, gStringPackHandle, Id, FALSE, NULL, &StringLength, String);\r
+ Status = gHii->GetString (gHii, gStringPackHandle, Id, FALSE, NULL, &StringLength, String);\r
if (EFI_ERROR (Status)) {\r
if (Status == EFI_BUFFER_TOO_SMALL) {\r
//\r
String = AllocatePool (StringLength);\r
ASSERT (String != NULL);\r
\r
- Status = Hii->GetString (Hii, gStringPackHandle, Id, FALSE, NULL, &StringLength, String);\r
+ Status = gHii->GetString (gHii, gStringPackHandle, Id, FALSE, NULL, &StringLength, String);\r
if (!EFI_ERROR (Status)) {\r
return String;\r
}\r