loader: ReadKeyStrokeEx may return partial keystrokes

In some systems we can receive no scancode nor unicodechar values.

PR:		240760
Reported by:	Ariel Millennium Thornton
MFC after:	1 week
This commit is contained in:
Toomas Soome 2019-12-03 18:36:39 +00:00
parent 1bd8c5e427
commit 0aff5f3934
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355347

View File

@ -1126,10 +1126,11 @@ efi_readkey_ex(void)
kp->UnicodeChar++;
}
}
if (kp->ScanCode == 0 && kp->UnicodeChar == 0)
return (false);
keybuf_inschar(kp);
return (true);
}
keybuf_inschar(kp);
return (true);
}
return (false);
}