Skip to content

Commit

Permalink
Fix bad reference to PathName in image loading
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rmetrich committed Jun 4, 2024
1 parent fc0f1d4 commit a0695a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,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;
Expand Down

0 comments on commit a0695a8

Please sign in to comment.