Fix the bug that destructor should sync with constructor

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2597 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2007-05-17 02:08:38 +00:00
parent ceffbc1900
commit 15b9277fb8
1 changed files with 6 additions and 8 deletions

View File

@ -113,7 +113,7 @@ RuntimeDriverLibConstruct (
ASSERT_EFI_ERROR (Status);
return EFI_SUCCESS;
return Status;
}
/**
@ -136,13 +136,11 @@ RuntimeDriverLibDeconstruct (
//
// Close SetVirtualAddressMap () notify function
//
if (_gDriverSetVirtualAddressMapEvent[0] != NULL) {
ASSERT (gBS != NULL);
Status = gBS->CloseEvent (mEfiVirtualNotifyEvent);
ASSERT_EFI_ERROR (Status);
}
ASSERT (gBS != NULL);
Status = gBS->CloseEvent (mEfiVirtualNotifyEvent);
ASSERT_EFI_ERROR (Status);
return EFI_SUCCESS;
return Status;
}
/**