diff options
author | gikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-13 09:24:25 +0000 |
---|---|---|
committer | gikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-13 09:24:25 +0000 |
commit | 945e3aed0f238c5c3e401a7793d1e8133c85d7c7 (patch) | |
tree | 795d48b88522dfde240caa76be1202df92d70e98 /MdeModulePkg | |
parent | 0ad78d0779bb2c805a3db4b265b0adb2010134ee (diff) | |
download | edk2-945e3aed0f238c5c3e401a7793d1e8133c85d7c7.tar.gz edk2-945e3aed0f238c5c3e401a7793d1e8133c85d7c7.tar.bz2 edk2-945e3aed0f238c5c3e401a7793d1e8133c85d7c7.zip |
Add a check for CreateQuestion may be return NULL.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8308 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 737aaf7315..745e20d9ea 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -1247,7 +1247,8 @@ ParseOpCodes ( case EFI_IFR_ONE_OF_OP:
case EFI_IFR_NUMERIC_OP:
CurrentStatement = CreateQuestion (OpCodeData, FormSet, CurrentForm);
-
+ ASSERT(CurrentStatement != NULL);
+
CurrentStatement->Flags = ((EFI_IFR_ONE_OF *) OpCodeData)->Flags;
Value = &CurrentStatement->HiiValue;
|