mirror of https://github.com/acidanthera/audk.git
fixed bug for special case.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5154 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f274810c8d
commit
22f5582e62
|
@ -459,11 +459,7 @@ Returns:
|
||||||
Status = IfrLibUpdateForm (UefiHiiHandle, &FormsetGuid, FormId, Label, AddData, UefiHiiUpdateData);
|
Status = IfrLibUpdateForm (UefiHiiHandle, &FormsetGuid, FormId, Label, AddData, UefiHiiUpdateData);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
} else {
|
|
||||||
ASSERT (FALSE);
|
|
||||||
return EFI_INVALID_PARAMETER;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Status = ThunkLocateFormId (UefiHiiHandle, Label, &FormsetGuid, &FormId);
|
Status = ThunkLocateFormId (UefiHiiHandle, Label, &FormsetGuid, &FormId);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
@ -471,8 +467,9 @@ Returns:
|
||||||
//
|
//
|
||||||
// Delete Opcode starting from Labe in FormId found
|
// Delete Opcode starting from Labe in FormId found
|
||||||
//
|
//
|
||||||
|
UefiHiiUpdateData = AllocateZeroPool (sizeof (*UefiHiiUpdateData));
|
||||||
|
|
||||||
Status = IfrLibUpdateForm (UefiHiiHandle, &FormsetGuid, FormId, Label, FALSE, NULL);
|
Status = IfrLibUpdateForm (UefiHiiHandle, &FormsetGuid, FormId, Label, FALSE, UefiHiiUpdateData);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue