diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-10 04:27:35 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-10 04:27:35 +0000 |
commit | 7b06dc8a9128d747cdebe79a89e1eb53c17c22fb (patch) | |
tree | 903b480c39e18108410b2f80ff9d4d0d282779fb /MdeModulePkg/Universal | |
parent | f1e2b80277b7d3985604a2538d7ed1f4f83aeea2 (diff) | |
download | edk2-7b06dc8a9128d747cdebe79a89e1eb53c17c22fb.zip edk2-7b06dc8a9128d747cdebe79a89e1eb53c17c22fb.tar.gz edk2-7b06dc8a9128d747cdebe79a89e1eb53c17c22fb.tar.bz2 |
Add ASSERT() check for StringInfo pointer.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8055 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/Font.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c index dfb2167..fa87273 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c @@ -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) {
//
|