From 78503a6f044cf6fa1c76ccc5244f3f16812b2e40 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 8 Mar 2013 21:45:48 +0100 Subject: [PATCH] ReadKeyStroke() in dump() --- src/efi/gummiboot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c index 0878ed4..1f0838b 100644 --- a/src/efi/gummiboot.c +++ b/src/efi/gummiboot.c @@ -457,6 +457,7 @@ static BOOLEAN line_edit(CHAR16 *line_in, CHAR16 **line_out, UINTN x_max, UINTN static VOID dump_status(Config *config, CHAR16 *loaded_image_path) { UINTN index; + EFI_INPUT_KEY key; UINTN i; CHAR16 *s; CHAR8 *b; @@ -520,7 +521,7 @@ static VOID dump_status(Config *config, CHAR16 *loaded_image_path) { Print(L"\n--- press key ---\n\n"); uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, &index); - uefi_call_wrapper(ST->ConIn->Reset, 2, ST->ConIn, FALSE); + uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &key); for (i = 0; i < config->entry_count; i++) { ConfigEntry *entry; @@ -556,7 +557,7 @@ static VOID dump_status(Config *config, CHAR16 *loaded_image_path) { Print(L"internal call yes\n"); Print(L"\n--- press key ---\n\n"); uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, &index); - uefi_call_wrapper(ST->ConIn->Reset, 2, ST->ConIn, FALSE); + uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &key); } uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut); -- 2.7.4