summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2010-04-16 17:08:09 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2010-04-21 18:07:16 +0300
commitd948dcd9555c81ccb378054383ef8da464202bdf (patch)
treefc1617850f7ba0efe641471890e204e551ec3c0e /Xi
parentf491b0aa5b86a5242fc4e04218202bbb52d0af39 (diff)
Xi: fix not reached code in XSendExtensionEvent
Error was introduced in 31a7994a. I.e., broken since 2007. I guess nobody uses XSendExtensionEvent. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/sendexev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xi/sendexev.c b/Xi/sendexev.c
index 8629dd202..bd96d74c7 100644
--- a/Xi/sendexev.c
+++ b/Xi/sendexev.c
@@ -138,9 +138,10 @@ ProcXSendExtensionEvent(ClientPtr client)
first = ((xEvent *) & stuff[1]);
if (!((EXTENSION_EVENT_BASE <= first->u.u.type) &&
- (first->u.u.type < lastEvent)))
+ (first->u.u.type < lastEvent))) {
client->errorValue = first->u.u.type;
return BadValue;
+ }
list = (XEventClass *) (first + stuff->num_events);
if ((ret = CreateMaskFromList(client, list, stuff->count, tmp, dev,