diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-05-17 02:08:38 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-05-17 02:08:38 +0000 |
commit | 15b9277fb809fa3632774deb2b94eb27333bbc30 (patch) | |
tree | 3173c3f40017c1b063af59ead175021c4c567b63 /EdkModulePkg/Library | |
parent | ceffbc1900072d6def2324d558cf4ef2813ceb8c (diff) | |
download | edk2-platforms-15b9277fb809fa3632774deb2b94eb27333bbc30.tar.xz |
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
Diffstat (limited to 'EdkModulePkg/Library')
-rw-r--r-- | EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c b/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c index 32eaed74a2..ce4efffbd7 100644 --- a/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c +++ b/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c @@ -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);
- }
-
- return EFI_SUCCESS;
+ ASSERT (gBS != NULL);
+ Status = gBS->CloseEvent (mEfiVirtualNotifyEvent);
+ ASSERT_EFI_ERROR (Status);
+
+ return Status;
}
/**
|