From: Jan Janssen Date: Sun, 29 May 2022 08:38:19 +0000 (+0200) Subject: boot: Drop use of LibLocateHandle X-Git-Tag: v252-rc1~835^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b05d69ed720590d01e7886b3ac2f6ff0cbfaa921;p=thirdparty%2Fsystemd.git boot: Drop use of LibLocateHandle --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 5287eabd6c7..3833ae9461c 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++) {