mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
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;
|
Background = SystemDefault->BackgroundColor;
|
||||||
|
|
||||||
} else {
|
} 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);
|
Status = HiiGetFontInfo (This, &FontHandle, (EFI_FONT_DISPLAY_INFO *) StringInfo, &StringInfoOut, NULL);
|
||||||
if (Status == EFI_NOT_FOUND) {
|
if (Status == EFI_NOT_FOUND) {
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user