mirror of https://github.com/acidanthera/audk.git
Fix a bug to handle case that SendForm() is called with an invalid FormSetGuid.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9422 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8f97f91154
commit
4c8358c77a
|
@ -655,6 +655,14 @@ DestroyFormSet (
|
||||||
FORM_EXPRESSION *Expression;
|
FORM_EXPRESSION *Expression;
|
||||||
FORM_BROWSER_FORM *Form;
|
FORM_BROWSER_FORM *Form;
|
||||||
|
|
||||||
|
if (FormSet->IfrBinaryData == NULL) {
|
||||||
|
//
|
||||||
|
// Uninitialized FormSet
|
||||||
|
//
|
||||||
|
FreePool (FormSet);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Free IFR binary buffer
|
// Free IFR binary buffer
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue