From b05d69ed720590d01e7886b3ac2f6ff0cbfaa921 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Sun, 29 May 2022 10:38:19 +0200 Subject: boot: Drop use of LibLocateHandle --- src/boot/efi/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/boot') diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 5287eabd6c..3833ae9461 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1941,8 +1941,8 @@ static void config_entry_add_osx(Config *config) { if (!config->auto_entries) return; - err = LibLocateHandle(ByProtocol, &FileSystemProtocol, NULL, &n_handles, &handles); - if (EFI_ERROR(err)) + err = BS->LocateHandleBuffer(ByProtocol, &FileSystemProtocol, NULL, &n_handles, &handles); + if (err != EFI_SUCCESS) return; for (UINTN i = 0; i < n_handles; i++) { -- cgit v1.2.3