From 17bc1418ecce5bfef83c17a32c350abbd58cb92c Mon Sep 17 00:00:00 2001 From: Nicola Ruggero Date: Thu, 4 Nov 2010 13:50:45 +0100 Subject: [PATCH] Read keymaps over 128 keys. Patch by Yoshitomo Nakashima --- xrdp/lang.c | 2 +- xrdp/xrdp_types.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xrdp/lang.c b/xrdp/lang.c index 0623b91e..6bcf7ebe 100644 --- a/xrdp/lang.c +++ b/xrdp/lang.c @@ -181,7 +181,7 @@ km_read_section(int fd, const char* section_name, struct xrdp_key_info* keymap) { code = g_atoi(name); } - if ((code >= 0) && (code < 128)) + if ((code >= 0) && (code < 256)) { pos1 = g_pos(value, ":"); if (pos1 >= 0) diff --git a/xrdp/xrdp_types.h b/xrdp/xrdp_types.h index 8ecc945c..74041608 100644 --- a/xrdp/xrdp_types.h +++ b/xrdp/xrdp_types.h @@ -201,11 +201,11 @@ struct xrdp_key_info struct xrdp_keymap { - struct xrdp_key_info keys_noshift[128]; - struct xrdp_key_info keys_shift[128]; - struct xrdp_key_info keys_altgr[128]; - struct xrdp_key_info keys_capslock[128]; - struct xrdp_key_info keys_shiftcapslock[128]; + struct xrdp_key_info keys_noshift[256]; + struct xrdp_key_info keys_shift[256]; + struct xrdp_key_info keys_altgr[256]; + struct xrdp_key_info keys_capslock[256]; + struct xrdp_key_info keys_shiftcapslock[256]; }; /* the window manager */