From 27562ea4cecb9e332080bc77c644c3e0612b73a9 Mon Sep 17 00:00:00 2001 From: Renaud Métrich Date: Tue, 4 Jun 2024 15:24:35 +0200 Subject: Fix bad reference to PathName in image loading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the patch: ----------------------------------------------------------------------- Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image 貘給: Not Found ----------------------------------------------------------------------- With the patch: ----------------------------------------------------------------------- Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image \EFI\BOOT\mmx64.efi: Not Found ----------------------------------------------------------------------- Signed-off-by: Renaud Métrich --- shim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shim.c') diff --git a/shim.c b/shim.c index 8d5ff589..bb54993f 100644 --- a/shim.c +++ b/shim.c @@ -1154,7 +1154,7 @@ EFI_STATUS read_image(EFI_HANDLE image_handle, CHAR16 *ImagePath, efi_status = load_image(shim_li, data, datasize, *PathName); if (EFI_ERROR(efi_status)) { perror(L"Failed to load image %s: %r\n", - PathName, efi_status); + *PathName, efi_status); PrintErrors(); ClearErrors(); return efi_status; -- cgit v1.2.3