summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-30 07:30:25 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-30 07:30:25 +0000
commit22f5582e62c270b37969d91ff8e2afcc58f7cbcd (patch)
tree36b9d3eb8d943b93cab3c59c1e9c4bc0e34ef526 /EdkCompatibilityPkg
parentf274810c8d6e9178f726d5c8381b5b7d2c09426a (diff)
downloadedk2-platforms-22f5582e62c270b37969d91ff8e2afcc58f7cbcd.tar.xz
fixed bug for special case.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5154 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r--EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
index ee4e2ac988..205eea604b 100644
--- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
+++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
@@ -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
//
-
- Status = IfrLibUpdateForm (UefiHiiHandle, &FormsetGuid, FormId, Label, FALSE, NULL);
+ UefiHiiUpdateData = AllocateZeroPool (sizeof (*UefiHiiUpdateData));
+
+ Status = IfrLibUpdateForm (UefiHiiHandle, &FormsetGuid, FormId, Label, FALSE, UefiHiiUpdateData);
ASSERT_EFI_ERROR (Status);
}