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:
vanjeff 2008-04-30 07:30:25 +00:00
parent f274810c8d
commit 22f5582e62
1 changed files with 4 additions and 7 deletions

View File

@ -459,11 +459,7 @@ Returns:
Status = IfrLibUpdateForm (UefiHiiHandle, &FormsetGuid, FormId, Label, AddData, UefiHiiUpdateData);
ASSERT_EFI_ERROR (Status);
} else {
ASSERT (FALSE);
return EFI_INVALID_PARAMETER;
}
} else {
Status = ThunkLocateFormId (UefiHiiHandle, Label, &FormsetGuid, &FormId);
ASSERT_EFI_ERROR (Status);
@ -471,8 +467,9 @@ Returns:
//
// 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);
}