Xi: XISelectEvents returns BadValue for num_masks == 0.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
cfeb65ac45
commit
e2fbaebb87
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue