Skip to content

Commit

Permalink
show_menu: work round bug in old EFIs
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Nov 8, 2020
1 parent b79ffb2 commit fde882b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,9 @@ EFI_STATUS show_menu(EFI_SYSTEM_TABLE* systable, boot_option** ret) {
print((WCHAR*)timeout_message);
print_dec(timer);

Status = systable->BootServices->CreateEvent(EVT_TIMER, TPL_APPLICATION, NULL, NULL, &evt);
/* The second parameter to CreateEvent was originally TPL_APPLICATION, but some old
* EFIs ignore the specs and return EFI_INVALID_PARAMETER if you do this. */
Status = systable->BootServices->CreateEvent(EVT_TIMER, TPL_CALLBACK, NULL, NULL, &evt);
if (EFI_ERROR(Status)) {
print_error(L"CreateEvent", Status);
goto end;
Expand Down

0 comments on commit fde882b

Please sign in to comment.