diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-09 10:07:19 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-18 13:04:44 +1000 |
commit | a3f37f3698880aec508b5ecfb88daf39360610aa (patch) | |
tree | ab21f05561210799d2d2745486a74f6970c9a130 /Xi/xipassivegrab.c | |
parent | f4d9ff73b161d84d3fcacc5834fa714c113c7a10 (diff) |
Xi: exit with error value if CheckGrabValues failed.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'Xi/xipassivegrab.c')
-rw-r--r-- | Xi/xipassivegrab.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c index 22f905e8f..5b4cc4610 100644 --- a/Xi/xipassivegrab.c +++ b/Xi/xipassivegrab.c @@ -159,6 +159,8 @@ ProcXIPassiveGrabDevice(ClientPtr client) return status; status = CheckGrabValues(client, ¶m); + if (status != Success) + return status; modifiers = (uint32_t*)&stuff[1] + stuff->mask_len; modifiers_failed = calloc(stuff->num_modifiers, sizeof(xXIGrabModifierInfo)); |