From aa534ef0113f8321c0f46630604a205a166c79d6 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Sat, 23 Dec 2023 22:23:17 +0100 Subject: [PATCH] If any of this occur, return error status code --- xtldr2/xtldr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xtldr2/xtldr.c b/xtldr2/xtldr.c index 581771d..79e91af 100644 --- a/xtldr2/xtldr.c +++ b/xtldr2/xtldr.c @@ -175,6 +175,7 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle, { /* Failed to register loader protocol */ BlDebugPrint(L"ERROR: Failed to register XTLDR boot protocol\n"); + return Status; } /* Discover and enumerate EFI block devices */ @@ -183,6 +184,7 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle, { /* Failed to enumerate block devices */ BlDebugPrint(L"ERROR: Failed to discover and enumerate block devices\n"); + return Status; } for(;;)