Use BlRegisterProtocol() wrapper
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 46s
Builds / ExectOS (i686) (push) Successful in 48s

This commit is contained in:
Rafal Kupiec 2024-01-01 22:11:36 +01:00
parent afb503961c
commit e618f112b5
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -566,7 +566,6 @@ EFI_STATUS
BlpRegisterXtLoaderProtocol()
{
EFI_GUID Guid = XT_BOOT_LOADER_PROTOCOL_GUID;
EFI_HANDLE Handle = NULL;
/* Set all routines available via loader protocol */
BlpLdrProtocol.Boot.FindProtocol = BlFindBootProtocol;
@ -606,5 +605,5 @@ BlpRegisterXtLoaderProtocol()
/* Register XTLDR loader protocol */
BlDebugPrint(L"Registering XT loader protocol\n");
return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, &BlpLdrProtocol);
return BlRegisterProtocol(&Guid, &BlpLdrProtocol);
}