summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/boot.c
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-05-29 10:38:19 +0200
committerJan Janssen <medhefgo@web.de>2022-06-09 12:50:13 +0200
commitb05d69ed720590d01e7886b3ac2f6ff0cbfaa921 (patch)
tree12adab55641a9cde3699f3a818393025af201b9e /src/boot/efi/boot.c
parentboot: Drop use of UnpackDevicePath (diff)
downloadsystemd-b05d69ed720590d01e7886b3ac2f6ff0cbfaa921.tar.xz
systemd-b05d69ed720590d01e7886b3ac2f6ff0cbfaa921.zip
boot: Drop use of LibLocateHandle
Diffstat (limited to '')
-rw-r--r--src/boot/efi/boot.c4
1 files changed, 2 insertions, 2 deletions
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++) {