Update xf_keyboard.c
authorvolth <volth@webmaster.ms>
Wed, 23 Sep 2015 18:40:34 +0000 (18:40 +0000)
committervolth <volth@webmaster.ms>
Wed, 23 Sep 2015 18:40:34 +0000 (18:40 +0000)
With Japanese physical keyboard and English layout, pressing the extra keys can cause FreeRDP crash.

client/X11/xf_keyboard.c

index a85186f..1d6d9c0 100644 (file)
@@ -381,6 +381,10 @@ int xf_keyboard_execute_action_script(xfContext* xfc, XF_MODIFIER_KEYS* mod, Key
        }
 
        keyStr = XKeysymToString(keysym);
+       if (keyStr == 0)
+       {
+               return 1;
+       }
 
        if (mod->Shift)
                strcat(combination, "Shift+");