summaryrefslogtreecommitdiff
path: root/Xi/setcptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/setcptr.c')
-rw-r--r--Xi/setcptr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Xi/setcptr.c b/Xi/setcptr.c
index 0bfc1eab7..ba7624691 100644
--- a/Xi/setcptr.c
+++ b/Xi/setcptr.c
@@ -69,6 +69,11 @@ ProcXISetClientPointer(ClientPtr client)
REQUEST(xXISetClientPointerReq);
REQUEST_SIZE_MATCH(xXISetClientPointerReq);
+ if (stuff->deviceid > 0xFF) /* FIXME */
+ {
+ client->errorValue = stuff->deviceid;
+ return BadImplementation;
+ }
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixWriteAccess);
if (rc != Success)