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