mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
0ad78d0779
commit
945e3aed0f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue