From 2b7681da858533d71d6108f373d020b024d07e55 Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 23 Sep 2015 18:40:34 +0000 Subject: [PATCH] Update xf_keyboard.c With Japanese physical keyboard and English layout, pressing the extra keys can cause FreeRDP crash. --- client/X11/xf_keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/X11/xf_keyboard.c b/client/X11/xf_keyboard.c index a85186f8a..1d6d9c06d 100644 --- a/client/X11/xf_keyboard.c +++ b/client/X11/xf_keyboard.c @@ -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+");