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); }