1
1
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:
Jan Janssen 2022-02-11 13:17:23 +01:00 committed by Luca Boccassi
parent ab30fe12ed
commit 5a9113cb0b

View File

@ -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);