mirror of https://github.com/acidanthera/audk.git
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:
parent
3a4e990ec4
commit
533020ef80
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue