From a7f79219706c357c6c15978cea5e654042b14acb Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Wed, 3 Nov 2021 14:48:32 +0000 Subject: change to GET_PROTOCOL to leave the handle table alone --- loader/main_efi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader') 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)) { -- cgit v1.3.1-1-g115d