Store additional information about module, for further processing
This commit is contained in:
@@ -257,6 +257,12 @@ BlLoadModule(IN PWCHAR ModuleName)
|
||||
EfiSystemTable->BootServices->CloseProtocol(LoadedImage, &LIPGuid, LoadedImage, NULL);
|
||||
}
|
||||
|
||||
/* Save module information */
|
||||
ModuleInfo->ModuleBase = LoadedImage->ImageBase;
|
||||
ModuleInfo->ModuleSize = LoadedImage->ImageSize;
|
||||
ModuleInfo->Revision = LoadedImage->Revision;
|
||||
ModuleInfo->UnloadModule = LoadedImage->Unload;
|
||||
|
||||
/* Close loaded image protocol */
|
||||
EfiSystemTable->BootServices->CloseProtocol(LoadedImage, &LIPGuid, LoadedImage, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user