]> git.proxmox.com Git - mirror_edk2.git/commitdiff
close notify event to avoid variable architectural protocol to be installed twice...
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 19 Mar 2009 03:13:08 +0000 (03:13 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 19 Mar 2009 03:13:08 +0000 (03:13 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7904 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c

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