]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiHiiLib/HiiString.c
EDK II Packages: Add Contributions.txt and License.txt files
[mirror_edk2.git] / MdeModulePkg / Library / UefiHiiLib / HiiString.c
index b61a9958d0d1830737b947c9ad1fc1d79d4c382a..6b1ec2d703ea22553392a4e8c240b3a9dd9aa96d 100644 (file)
@@ -1,8 +1,8 @@
 /** @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
@@ -66,7 +66,6 @@ HiiSetString (
   CHAR8          *AllocatedLanguages;\r
   CHAR8          *Supported;\r
   CHAR8          *Language;\r
-  EFI_STRING_ID  NewStringId;\r
 \r
   ASSERT (HiiHandle != NULL);\r
   ASSERT (String != NULL);\r
@@ -90,7 +89,6 @@ HiiSetString (
     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
@@ -113,7 +111,7 @@ HiiSetString (
     // 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
@@ -133,8 +131,6 @@ HiiSetString (
 \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