mirror of https://github.com/acidanthera/audk.git
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:
parent
f1e2b80277
commit
7b06dc8a91
|
@ -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) {
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue