Colin Watson's request
This commit is contained in:
parent
fa533ebb5c
commit
ca04c7a550
1 changed files with 8 additions and 4 deletions
|
@ -55,12 +55,16 @@ grub_cmd_keystatus (grub_extcmd_t cmd,
|
||||||
if (expect_mods == 0)
|
if (expect_mods == 0)
|
||||||
{
|
{
|
||||||
grub_term_input_t term;
|
grub_term_input_t term;
|
||||||
|
int nterms = 0;
|
||||||
|
|
||||||
FOR_ACTIVE_TERM_INPUTS (term)
|
FOR_ACTIVE_TERM_INPUTS (term)
|
||||||
if (term->getkeystatus)
|
if (!term->getkeystatus)
|
||||||
return 0;
|
return grub_error (GRUB_ERR_TEST_FAILURE, "false");
|
||||||
|
else
|
||||||
return grub_error (GRUB_ERR_TEST_FAILURE, "false");
|
nterms++;
|
||||||
|
if (!nterms)
|
||||||
|
return grub_error (GRUB_ERR_TEST_FAILURE, "false");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mods = grub_getkeystatus ();
|
mods = grub_getkeystatus ();
|
||||||
|
|
Loading…
Reference in a new issue