From 6cd8bf649cf3446515b7d94a631a2e659bb48285 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 5 Dec 2008 09:34:36 +0000 Subject: [PATCH] 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 --- MdeModulePkg/Library/UefiHiiLib/HiiString.c | 1 + 1 file changed, 1 insertion(+) 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) {