Xi: take XI2 requests into account when checking opcodes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-04-12 22:16:14 +10:00
parent c94ea5bc05
commit c11ef87931

View File

@ -391,7 +391,7 @@ static int
ProcIDispatch(ClientPtr client)
{
REQUEST(xReq);
if (stuff->data > IREQUESTS || !ProcIVector[stuff->data])
if (stuff->data > (IREQUESTS + XI2REQUESTS) || !ProcIVector[stuff->data])
return BadRequest;
return (*ProcIVector[stuff->data])(client);