]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
Update SetupBrowserDxe and BdsDxe to use an internal string for prompting string...
[mirror_edk2.git] / MdeModulePkg / Universal / SetupBrowserDxe / Setup.c
index 0a067f03762ee8ae6dad5e4bc396ab862ff5ef32..15d4af3cf1af843018dbc4eafa6314da5c2044b0 100644 (file)
@@ -76,6 +76,8 @@ CHAR16            *gAdjustNumber;
 CHAR16            *gSaveChanges;\r
 CHAR16            *gOptionMismatch;\r
 \r
+CHAR16            *mUnknownString = L"!";\r
+\r
 CHAR16            gPromptBlockWidth;\r
 CHAR16            gOptionBlockWidth;\r
 CHAR16            gHelpBlockWidth;\r
@@ -650,7 +652,10 @@ GetToken (
   EFI_STRING  String;\r
 \r
   String = HiiGetString (HiiHandle, Token, NULL);\r
-  ASSERT (String != NULL);\r
+  if (String == NULL) {\r
+    String = AllocateCopyPool (sizeof (mUnknownString), mUnknownString);\r
+    ASSERT (String != NULL);\r
+  }\r
   return (CHAR16 *) String;\r
 }\r
 \r