diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-04-16 17:08:09 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-04-21 18:07:16 +0300 |
commit | d948dcd9555c81ccb378054383ef8da464202bdf (patch) | |
tree | fc1617850f7ba0efe641471890e204e551ec3c0e | |
parent | f491b0aa5b86a5242fc4e04218202bbb52d0af39 (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>
-rw-r--r-- | Xi/sendexev.c | 3 |
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, |