From 3025338e7117ef970a58f4a2c856717c15c11d95 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Thu, 7 Dec 2023 15:56:39 +0100 Subject: [PATCH] Check block devices enumeration status --- xtldr2/xtldr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xtldr2/xtldr.c b/xtldr2/xtldr.c index 1a5dba4..37edbe9 100644 --- a/xtldr2/xtldr.c +++ b/xtldr2/xtldr.c @@ -69,7 +69,12 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle, } /* Discover and enumerate EFI block devices */ - BlEnumerateBlockDevices(); + Status = BlEnumerateBlockDevices(); + if(Status != STATUS_EFI_SUCCESS) + { + /* Failed to enumerate block devices */ + BlDebugPrint(L"ERROR: Failed to discover and enumerate block devices\n"); + } /* Temporary infinite loop */ for(;;);