* grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
But ensure that the variables in question are indeed unsigned.
This commit is contained in:
parent
fa7eb63dec
commit
11e4167a35
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
|
||||||
|
But ensure that the variables in question are indeed unsigned.
|
||||||
|
|
||||||
2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
|
* grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
|
||||||
|
|
|
@ -108,11 +108,9 @@ grub_console_getkey (struct grub_term_input *term __attribute__ ((unused)))
|
||||||
ret = ir.Event.KeyEvent.uChar.UnicodeChar;
|
ret = ir.Event.KeyEvent.uChar.UnicodeChar;
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
if (ir.Event.KeyEvent.wVirtualKeyCode >= 0
|
unsigned kc = ir.Event.KeyEvent.wVirtualKeyCode;
|
||||||
&& ir.Event.KeyEvent.wVirtualKeyCode
|
if (kc < ARRAY_SIZE (windows_codes) && windows_codes[kc])
|
||||||
< ARRAY_SIZE (windows_codes)
|
ret = windows_codes[kc];
|
||||||
&& windows_codes[(int) ir.Event.KeyEvent.wVirtualKeyCode])
|
|
||||||
ret = windows_codes[(int) ir.Event.KeyEvent.wVirtualKeyCode];
|
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
if (ir.Event.KeyEvent.dwControlKeyState & SHIFT_PRESSED)
|
if (ir.Event.KeyEvent.dwControlKeyState & SHIFT_PRESSED)
|
||||||
|
|
Loading…
Reference in a new issue