close notify event to avoid variable architectural protocol to be installed twice or more.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7904 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2009-03-19 03:13:08 +00:00
parent 3a4e990ec4
commit 533020ef80
1 changed files with 6 additions and 0 deletions

View File

@ -2087,6 +2087,12 @@ FvbNotificationEvent (
FreePool (HandleBuffer);
if (!EFI_ERROR (Status) && Fvb != NULL) {
//
// Close the notify event to avoid install gEfiVariableArchProtocolGuid & gEfiVariableWriteArchProtocolGuid again.
//
Status = gBS->CloseEvent (Event);
ASSERT_EFI_ERROR (Status);
Status = VariableCommonInitialize (Fvb);
ASSERT_EFI_ERROR (Status);