diff options
author | Daniel Stone <daniel@fooishbar.org> | 2010-12-17 17:13:34 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2010-12-31 12:36:44 +0000 |
commit | 03f2eb1e156796afb70118d7f7f60ac61beed026 (patch) | |
tree | c7ef090096628f9aab2d0570dafcab3489a17619 /Xi/xigrabdev.c | |
parent | 47818287983b04625661b08ae362e0966cddf3e1 (diff) |
Input: Set client error value for invalid mask bits
When we send BadValue back to the client for having invalid mask bits,
at least tell them what the (first) invalid bit was.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/xigrabdev.c')
-rw-r--r-- | Xi/xigrabdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/xigrabdev.c b/Xi/xigrabdev.c index 24ededcb1..0adc8787d 100644 --- a/Xi/xigrabdev.c +++ b/Xi/xigrabdev.c @@ -79,7 +79,7 @@ ProcXIGrabDevice(ClientPtr client) if (!IsMaster(dev)) stuff->paired_device_mode = GrabModeAsync; - if (XICheckInvalidMaskBits((unsigned char*)&stuff[1], + if (XICheckInvalidMaskBits(client, (unsigned char*)&stuff[1], stuff->mask_len * 4) != Success) return BadValue; |