[syslinux:master] efi: Change status check when draining keyboard
syslinux-bot for Oliver Wagner
owagner at tellerulam.com
Wed Sep 2 11:30:02 PDT 2015
Commit-ID: 73bb3701a19a9eeb30b6f77ff7612ca2a9cd3f38
Gitweb: http://www.syslinux.org/commit/73bb3701a19a9eeb30b6f77ff7612ca2a9cd3f38
Author: Oliver Wagner <owagner at tellerulam.com>
AuthorDate: Wed, 2 Sep 2015 14:21:59 -0400
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Wed, 2 Sep 2015 14:22:28 -0400
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 at gmail.com>
---
efi/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/efi/main.c b/efi/main.c
index 6dbc259..e07ee5c 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);
More information about the Syslinux-commits
mailing list