fix keyboard release (thanks hardening!)
authorabma <spring@abma.de>
Fri, 15 Jan 2016 00:59:08 +0000 (01:59 +0100)
committerabma <spring@abma.de>
Fri, 15 Jan 2016 00:59:08 +0000 (01:59 +0100)
client/X11/xf_keyboard.c

index 02af8c3..3e11b95 100644 (file)
@@ -179,7 +179,7 @@ void xf_keyboard_release_all_keypress(xfContext* xfc)
 
        for (keycode = 0; keycode < ARRAYSIZE(xfc->KeyboardState); keycode++)
        {
-               if (!xfc->KeyboardState[keycode])
+               if (xfc->KeyboardState[keycode])
                {
                        rdp_scancode = freerdp_keyboard_get_rdp_scancode_from_x11_keycode(keycode);