From bd37f9718f9346bc4873390c6e84b37ed57190ad Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 27 Mar 2009 04:56:54 +0000 Subject: Add ASSERT() check for StringInfoIn structure. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7968 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/HiiDatabaseDxe/Font.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'MdeModulePkg/Universal/HiiDatabaseDxe') diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c index 6d46fd1e36..dfb21673fd 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c @@ -2545,7 +2545,11 @@ HiiGetFontInfo ( goto Exit; } } - + + // + // StringInfoIn must not be NULL if it is not system default font info. + // + ASSERT (StringInfoIn != NULL); // // Check the font information mask to make sure it is valid. // -- cgit v1.2.3