Skip to content

Commit

Permalink
Don't print full screen error dialog from handle_image() when called …
Browse files Browse the repository at this point in the history
…in_protocol

This isn't desirable when GRUB has control of the screen, and would mess
its content up.
  • Loading branch information
kukrimate committed May 24, 2024
1 parent d0135d0 commit a791a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ handle_image (void *data, unsigned int datasize,
sha1hash);

if (EFI_ERROR(efi_status)) {
if (verbose)
if (verbose || in_protocol)
console_print(L"Verification failed: %r\n", efi_status);
else
console_error(L"Verification failed", efi_status);
Expand Down

0 comments on commit a791a4f

Please sign in to comment.