diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-08 05:55:25 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-08 05:55:25 +0000 |
commit | 0e8e994db30cf4c2383b6e39e1d40e8025dfda45 (patch) | |
tree | dec18f175b24169b44b386643cb09145b0e6c056 /MdeModulePkg/Universal | |
parent | 844390f7d59690b09abca9d4807615bb95a8e510 (diff) | |
download | edk2-0e8e994db30cf4c2383b6e39e1d40e8025dfda45.zip edk2-0e8e994db30cf4c2383b6e39e1d40e8025dfda45.tar.gz edk2-0e8e994db30cf4c2383b6e39e1d40e8025dfda45.tar.bz2 |
Update SetupBrowserDxe and BdsDxe to use an internal string for prompting string missing instead of ASSERT if it fails to get a string for separate module's forms.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8263 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index 0a067f0..15d4af3 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c @@ -76,6 +76,8 @@ CHAR16 *gAdjustNumber; CHAR16 *gSaveChanges;
CHAR16 *gOptionMismatch;
+CHAR16 *mUnknownString = L"!";
+
CHAR16 gPromptBlockWidth;
CHAR16 gOptionBlockWidth;
CHAR16 gHelpBlockWidth;
@@ -650,7 +652,10 @@ GetToken ( EFI_STRING String;
String = HiiGetString (HiiHandle, Token, NULL);
- ASSERT (String != NULL);
+ if (String == NULL) {
+ String = AllocateCopyPool (sizeof (mUnknownString), mUnknownString);
+ ASSERT (String != NULL);
+ }
return (CHAR16 *) String;
}
|