From e618f112b5ab1d38da0e4fb99b9f30e6fd978307 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Mon, 1 Jan 2024 22:11:36 +0100 Subject: [PATCH] Use BlRegisterProtocol() wrapper --- xtldr2/protocol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xtldr2/protocol.c b/xtldr2/protocol.c index f004310..5fbf82a 100644 --- a/xtldr2/protocol.c +++ b/xtldr2/protocol.c @@ -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); }