diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-05 09:34:36 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-05 09:34:36 +0000 |
commit | 6cd8bf649cf3446515b7d94a631a2e659bb48285 (patch) | |
tree | 77838c2cec4417a3032e827337a9cb812e270bac | |
parent | 2297186d22231ffcf35cc5a03bdd60e8ac97558e (diff) | |
download | edk2-platforms-6cd8bf649cf3446515b7d94a631a2e659bb48285.tar.xz |
Add in an ASSERT to check the return of HiiLibGetSupportedLanguages. This function should never return NULL. If it does, it is a build.exe bug.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6874 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Library/UefiHiiLib/HiiString.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiString.c b/MdeModulePkg/Library/UefiHiiLib/HiiString.c index cd4944152a..e10b1c72ee 100644 --- a/MdeModulePkg/Library/UefiHiiLib/HiiString.c +++ b/MdeModulePkg/Library/UefiHiiLib/HiiString.c @@ -199,6 +199,7 @@ HiiLibNewString ( Status = EFI_SUCCESS;
Languages = HiiLibGetSupportedLanguages (PackageList);
+ ASSERT (Languages != NULL);
LangStrings = Languages;
while (*LangStrings != 0) {
|