aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Wagner <owagner@tellerulam.com>2015-09-02 14:21:59 -0400
committerGene Cumm <gene.cumm@gmail.com>2015-09-02 14:22:28 -0400
commit73bb3701a19a9eeb30b6f77ff7612ca2a9cd3f38 (patch)
tree7540be64f06b42f5b26cffb48502d19201b2dff5
parentd70168d1bfdc3883095666a7347dca78707afc3a (diff)
downloadsyslinux-73bb3701a19a9eeb30b6f77ff7612ca2a9cd3f38.tar.gz
syslinux-73bb3701a19a9eeb30b6f77ff7612ca2a9cd3f38.tar.xz
syslinux-73bb3701a19a9eeb30b6f77ff7612ca2a9cd3f38.zip
efi: Change status check when draining keyboard
PCs without keyboards may hang as they might return a status other than EFI_NOT_READY. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--efi/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi/main.c b/efi/main.c
index 6dbc259e..e07ee5c8 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -1381,7 +1381,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *table)
in = ST->ConIn;
do {
status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key);
- } while (status != EFI_NOT_READY);
+ } while (status == EFI_SUCCESS);
if (!setjmp(load_error_buf))
load_env32(NULL);