diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-09 14:38:25 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-11 13:39:48 +1000 |
commit | e2fbaebb87e18198143a4b8e6be7e650563cd819 (patch) | |
tree | 0f873e8f17bb0bf1bc82cb71299ae5cc3e6686e7 /Xi | |
parent | cfeb65ac45b194dead5e8b9b26192df2619d6f9c (diff) |
Xi: XISelectEvents returns BadValue for num_masks == 0.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/xiselectev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c index 8c1b2b106..6734da991 100644 --- a/Xi/xiselectev.c +++ b/Xi/xiselectev.c @@ -73,6 +73,9 @@ ProcXISelectEvent(ClientPtr client) REQUEST(xXISelectEventsReq); REQUEST_AT_LEAST_SIZE(xXISelectEventsReq); + if (stuff->num_masks == 0) + return BadValue; + rc = dixLookupWindow(&win, stuff->window, client, DixReceiveAccess); if (rc != Success) return rc; |