Changeset a85aebd in mainline for kernel/genarch/src/kbrd/kbrd.c


Ignore:
Timestamp:
2009-04-04T00:56:05Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f2177e
Parents:
cb01e1e
Message:

fix wrong bounds checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/kbrd/kbrd.c

    rcb01e1e ra85aebd  
    141141                wchar_t sc = _getc(in);
    142142               
    143                 if ((sc == IGNORE_CODE) || (sc >= SCANCODES))
     143                if (sc == IGNORE_CODE)
    144144                        continue;
    145145               
    146146                if (sc & KEY_RELEASE)
    147                         key_released(sc ^ KEY_RELEASE);
     147                        key_released((sc ^ KEY_RELEASE) & 0x7f);
    148148                else
    149                         key_pressed(sc);
     149                        key_pressed(sc & 0x7f);
    150150        }
    151151}
Note: See TracChangeset for help on using the changeset viewer.