From dd8dbd0a0696890b499f4fe9a123fdb78aef8a52 Mon Sep 17 00:00:00 2001 From: bzt Date: Thu, 5 May 2022 11:45:54 +0200 Subject: [PATCH] Fixed issue #37 --- uefi/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uefi/stdio.c b/uefi/stdio.c index 5b964eb..d7c6007 100644 --- a/uefi/stdio.c +++ b/uefi/stdio.c @@ -781,7 +781,7 @@ int getchar_ifany (void) { efi_input_key_t key = { 0 }; efi_status_t status = ST->ConIn->ReadKeyStroke(ST->ConIn, &key); - return EFI_ERROR(status) ? -1 : key.UnicodeChar; + return EFI_ERROR(status) ? 0 : key.UnicodeChar; } int getchar (void)