summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-11-03 14:48:32 +0000
committerAda Christine <adachristine18@gmail.com>2021-11-03 14:48:32 +0000
commita7f79219706c357c6c15978cea5e654042b14acb (patch)
treec8da653690ffe0c0a4152c246751ad280e38bb60
parent9f9d0aed3e15aabf8cda73a41e9cb1996a10d042 (diff)
change to GET_PROTOCOL to leave the handle table alone
-rw-r--r--loader/main_efi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/main_efi.c b/loader/main_efi.c
index 070cc16..8abf42a 100644
--- a/loader/main_efi.c
+++ b/loader/main_efi.c
@@ -65,7 +65,7 @@ static EFI_LOADED_IMAGE_PROTOCOL *open_loaded_image(void)
(void **)&image,
e_image_handle,
NULL,
- EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);
+ EFI_OPEN_PROTOCOL_GET_PROTOCOL);
if (EFI_ERROR(status))
{
@@ -92,7 +92,7 @@ static EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *open_system_partition(void)
(void **)&partition,
e_image_handle,
NULL,
- EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);
+ EFI_OPEN_PROTOCOL_GET_PROTOCOL);
if (EFI_ERROR(status))
{