/** @file\r
HII Library implementation that uses DXE protocols and services.\r
\r
- Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials\r
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
CHAR8 *AllocatedLanguages;\r
CHAR8 *Supported;\r
CHAR8 *Language;\r
- EFI_STRING_ID NewStringId;\r
\r
ASSERT (HiiHandle != NULL);\r
ASSERT (String != NULL);\r
return (EFI_STRING_ID)(0);\r
}\r
\r
- NewStringId = 0;\r
Status = EFI_INVALID_PARAMETER;\r
//\r
// Loop through each language that the string supports\r
// If StringId is 0, then call NewString(). Otherwise, call SetString()\r
//\r
if (StringId == (EFI_STRING_ID)(0)) {\r
- Status = gHiiString->NewString (gHiiString, HiiHandle, &NewStringId, Language, NULL, String, NULL);\r
+ Status = gHiiString->NewString (gHiiString, HiiHandle, &StringId, Language, NULL, String, NULL);\r
} else {\r
Status = gHiiString->SetString (gHiiString, HiiHandle, StringId, Language, String, NULL);\r
}\r
\r
if (EFI_ERROR (Status)) {\r
return (EFI_STRING_ID)(0);\r
- } else if (StringId == (EFI_STRING_ID)(0)) {\r
- return NewStringId;\r
} else {\r
return StringId;\r
}\r