diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-01-12 18:24:07 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-01-12 18:24:07 -0800 |
commit | 02aa39c79d533cf6d5932363913ddad277f0e8ed (patch) | |
tree | fe674a842efe6ce69661b104601dd29ad61b7e9b /libxrdp | |
parent | 44642a01d949b0fd29f594c33d830ccd2cf98205 (diff) | |
download | xrdp-proprietary-02aa39c79d533cf6d5932363913ddad277f0e8ed.tar.gz xrdp-proprietary-02aa39c79d533cf6d5932363913ddad277f0e8ed.zip |
added keyboard type and subtype to struct xrdp_client_info
Diffstat (limited to 'libxrdp')
-rw-r--r-- | libxrdp/xrdp_sec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index f52a080d..d1bd49de 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -1232,6 +1232,15 @@ xrdp_sec_in_mcs_data(struct xrdp_sec *self) } in_uint8s(s, 39); in_uint32_le(s, client_info->keylayout); + /* get keyboard type / subtype */ + s->p = s->data; + if (!s_check_rem(s, 79 + 8)) + { + return 1; + } + in_uint8s(s, 79); + in_uint32_le(s, client_info->keyboard_type); + in_uint32_le(s, client_info->keyboard_subtype); s->p = s->data; return 0; } |