summaryrefslogtreecommitdiff
path: root/Xi/warpdevp.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/warpdevp.c')
-rw-r--r--Xi/warpdevp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Xi/warpdevp.c b/Xi/warpdevp.c
index 025a4cef7..bb45bdafc 100644
--- a/Xi/warpdevp.c
+++ b/Xi/warpdevp.c
@@ -76,6 +76,12 @@ ProcXIWarpPointer(ClientPtr client)
REQUEST(xXIWarpPointerReq);
REQUEST_SIZE_MATCH(xXIWarpPointerReq);
+ if (stuff->deviceid > 0xFF) /* FIXME */
+ {
+ client->errorValue = stuff->deviceid;
+ return BadImplementation;
+ }
+
/* FIXME: panoramix stuff is missing, look at ProcWarpPointer */
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixWriteAccess);