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
This commit is contained in:
qwang12 2008-12-05 09:34:36 +00:00
parent 2297186d22
commit 6cd8bf649c
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ HiiLibNewString (
Status = EFI_SUCCESS;
Languages = HiiLibGetSupportedLanguages (PackageList);
ASSERT (Languages != NULL);
LangStrings = Languages;
while (*LangStrings != 0) {