Use BlRegisterProtocol() wrapper
This commit is contained in:
parent
afb503961c
commit
e618f112b5
@ -566,7 +566,6 @@ EFI_STATUS
|
|||||||
BlpRegisterXtLoaderProtocol()
|
BlpRegisterXtLoaderProtocol()
|
||||||
{
|
{
|
||||||
EFI_GUID Guid = XT_BOOT_LOADER_PROTOCOL_GUID;
|
EFI_GUID Guid = XT_BOOT_LOADER_PROTOCOL_GUID;
|
||||||
EFI_HANDLE Handle = NULL;
|
|
||||||
|
|
||||||
/* Set all routines available via loader protocol */
|
/* Set all routines available via loader protocol */
|
||||||
BlpLdrProtocol.Boot.FindProtocol = BlFindBootProtocol;
|
BlpLdrProtocol.Boot.FindProtocol = BlFindBootProtocol;
|
||||||
@ -606,5 +605,5 @@ BlpRegisterXtLoaderProtocol()
|
|||||||
|
|
||||||
/* Register XTLDR loader protocol */
|
/* Register XTLDR loader protocol */
|
||||||
BlDebugPrint(L"Registering XT loader protocol\n");
|
BlDebugPrint(L"Registering XT loader protocol\n");
|
||||||
return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, &BlpLdrProtocol);
|
return BlRegisterProtocol(&Guid, &BlpLdrProtocol);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user