[PATCH 3/5] Xi: exit with error value if CheckGrabValues failed.

Jeremy Huddleston jeremyhu at apple.com
Thu Apr 14 20:33:55 PDT 2011


Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>

On Apr 14, 2011, at 8:20 PM, Peter Hutterer wrote:

> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> Xi/xipassivegrab.c |    2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c
> index 22f905e..5b4cc46 100644
> --- a/Xi/xipassivegrab.c
> +++ b/Xi/xipassivegrab.c
> @@ -159,6 +159,8 @@ ProcXIPassiveGrabDevice(ClientPtr client)
> 	return status;
> 
>     status = CheckGrabValues(client, &param);
> +    if (status != Success)
> +        return status;
> 
>     modifiers = (uint32_t*)&stuff[1] + stuff->mask_len;
>     modifiers_failed = calloc(stuff->num_modifiers, sizeof(xXIGrabModifierInfo));
> -- 
> 1.7.4.2
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list