Add ASSERT() check for StringInfo pointer.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8055 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2009-04-10 04:27:35 +00:00
parent f1e2b80277
commit 7b06dc8a91
1 changed files with 4 additions and 0 deletions

View File

@ -1585,6 +1585,10 @@ HiiStringToImage (
Background = SystemDefault->BackgroundColor;
} else {
//
// StringInfo must not be NULL if it is not system info.
//
ASSERT (StringInfo != NULL);
Status = HiiGetFontInfo (This, &FontHandle, (EFI_FONT_DISPLAY_INFO *) StringInfo, &StringInfoOut, NULL);
if (Status == EFI_NOT_FOUND) {
//