CreateColormap: fix return value (bug #7083)
Return BadMatch when an unsupported visual type is given, not BadValue -- this is correct according to the spec.
This commit is contained in:
parent
96f78e3886
commit
ae58d349c1
|
@ -2520,7 +2520,7 @@ ProcCreateColormap(register ClientPtr client)
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
client->errorValue = stuff->visual;
|
client->errorValue = stuff->visual;
|
||||||
return(BadValue);
|
return(BadMatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue