]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Drop use of LibLocateHandle
authorJan Janssen <medhefgo@web.de>
Sun, 29 May 2022 08:38:19 +0000 (10:38 +0200)
committerJan Janssen <medhefgo@web.de>
Thu, 9 Jun 2022 10:50:13 +0000 (12:50 +0200)
src/boot/efi/boot.c

index 5287eabd6c712b05a201a709358b0d05eebeb7ad..3833ae9461c6960c4244bf98d8ac6c66b9da9a49 100644 (file)
@@ -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++) {