summaryrefslogtreecommitdiff
path: root/include/console.h
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2014-06-25 10:02:18 -0400
committerPeter Jones <pjones@redhat.com>2014-06-25 10:02:18 -0400
commitdcc523811b7763036682ba42cc83cbf88f42a8f2 (patch)
tree9eb9006628f3fff8fb546efebb6905fbd7206d06 /include/console.h
parent38fe58d33aa9abfa1f5c086e5396ef31ee95ecb9 (diff)
downloadefi-boot-shim-dcc523811b7763036682ba42cc83cbf88f42a8f2.tar.gz
efi-boot-shim-dcc523811b7763036682ba42cc83cbf88f42a8f2.zip
MokManager: handle the error status from ReadKeyStroke
On some machines, even though the key event was signaled, ReadKeyStroke still got EFI_NOT_READY. This commit handles the error status to avoid console_get_keystroke from returning unexpected keys. Signed-off-by: Gary Ching-Pang Lin <glin@suse.com> Conflicts: MokManager.c
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/console.h b/include/console.h
index e6c2818f..9c793ea5 100644
--- a/include/console.h
+++ b/include/console.h
@@ -1,8 +1,8 @@
#ifndef _SHIM_LIB_CONSOLE_H
#define _SHIM_LIB_CONSOLE_H 1
-EFI_INPUT_KEY
-console_get_keystroke(void);
+EFI_STATUS
+console_get_keystroke(EFI_INPUT_KEY *key);
void
console_print_box_at(CHAR16 *str_arr[], int highlight, int start_col, int start_row, int size_cols, int size_rows, int offset, int lines);
void