mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
boot: Correctly check the return value of CheckEvent
Fixes: #22428
(cherry picked from commit ac3979abd7
)
This commit is contained in:
parent
ab30fe12ed
commit
5a9113cb0b
@ -147,7 +147,7 @@ EFI_STATUS console_key_read(UINT64 *key, UINT64 timeout_usec) {
|
||||
}
|
||||
|
||||
return EFI_NOT_READY;
|
||||
} else if (BS->CheckEvent(ST->ConIn->WaitForKey)) {
|
||||
} else if (!EFI_ERROR(BS->CheckEvent(ST->ConIn->WaitForKey))) {
|
||||
EFI_INPUT_KEY k;
|
||||
|
||||
err = ST->ConIn->ReadKeyStroke(ST->ConIn, &k);
|
||||
|
Loading…
Reference in New Issue
Block a user