Xi: XIQueryVersion requires major_version of 2 or higher.
Otherwise, a BadValue error is sent. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6ea76c5504
commit
09266d6cd1
|
@ -62,6 +62,13 @@ ProcXIQueryVersion(ClientPtr client)
|
|||
REQUEST(xXIQueryVersionReq);
|
||||
REQUEST_SIZE_MATCH(xXIQueryVersionReq);
|
||||
|
||||
/* This request only exists after XI2 */
|
||||
if (stuff->major_version < 2)
|
||||
{
|
||||
client->errorValue = stuff->major_version;
|
||||
return BadValue;
|
||||
}
|
||||
|
||||
pXIClient = dixLookupPrivate(&client->devPrivates, XIClientPrivateKey);
|
||||
|
||||
major = min(XIVersion.major_version, stuff->major_version);
|
||||
|
|
Loading…
Reference in New Issue
Block a user