From d948dcd9555c81ccb378054383ef8da464202bdf Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Fri, 16 Apr 2010 17:08:09 +0300 Subject: 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 Reviewed-by: Dan Nicholson --- Xi/sendexev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Xi') 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, -- cgit v1.2.3