diff options
author | jsorg71 <jsorg71> | 2008-01-31 05:36:34 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2008-01-31 05:36:34 +0000 |
commit | 2546d29c50c56ca3d4a31cd9955fd77ee1a00ad5 (patch) | |
tree | 6366ae1b9c70799a9acd0dfa146fd9d95eba858c /xrdp/lang.c | |
parent | cd57d1b68943165e4222229d75ce5085f732e6ad (diff) | |
download | xrdp-proprietary-2546d29c50c56ca3d4a31cd9955fd77ee1a00ad5.tar.gz xrdp-proprietary-2546d29c50c56ca3d4a31cd9955fd77ee1a00ad5.zip |
print a message if loaded keymap doesn't match build in keymap
Diffstat (limited to 'xrdp/lang.c')
-rw-r--r-- | xrdp/lang.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xrdp/lang.c b/xrdp/lang.c index b1392514..d8c40f63 100644 --- a/xrdp/lang.c +++ b/xrdp/lang.c @@ -1105,6 +1105,7 @@ get_keymaps(int keylayout, struct xrdp_keymap* keymap) int ks; int fd; char filename[256]; + struct xrdp_keymap lkeymap; ks = sizeof(int) * 128; switch (keylayout) @@ -1180,6 +1181,7 @@ get_keymaps(int keylayout, struct xrdp_keymap* keymap) fd = g_file_open(filename); if (fd > 0) { + lkeymap = *keymap; /* make a copy of the build in kaymap */ /* clear the keymaps */ g_memset(keymap->keys_noshift, 0, ks); g_memset(keymap->keys_shift, 0, ks); @@ -1192,6 +1194,11 @@ get_keymaps(int keylayout, struct xrdp_keymap* keymap) km_read_section(fd, "altgr", keymap->keys_altgr); km_read_section(fd, "capslock", keymap->keys_capslock); km_read_section(fd, "shiftcapslock", keymap->keys_shiftcapslock); + if (g_memcmp(&lkeymap, keymap, sizeof(struct xrdp_keymap)) != 0) + { + g_writeln("local keymap file for 0x%4.4x found and dosen't match built \ +in keymap, using local keymap file", keylayout); + } g_file_close(fd); } } |