- EFI_STATUS Status;\r
-\r
- //\r
- // Call the unload handlers for all the modules\r
- //\r
- Status = ProcessModuleUnloadList (ImageHandle);\r
-\r
- //\r
- // If the driver specific unload handler does not return an error, then call all of the\r
- // library destructors. If the unload handler returned an error, then the driver can not be\r
- // unloaded, and the library destructors should not be called\r
- //\r
- if (!EFI_ERROR (Status)) {\r
- ProcessLibraryDestructorList (ImageHandle, gST);\r
- }\r
-\r