CreateColormap: fix return value (bug #7083)

Return BadMatch when an unsupported visual type is given, not BadValue --
this is correct according to the spec.
(cherry picked from af606f9dab4d51724b4be6f43f1de7b3342c443a commit)
This commit is contained in:
Laurence Withers 2006-11-04 19:34:37 +02:00 committed by Daniel Stone
parent b94e320205
commit 00a1e648ef

View file

@ -2459,7 +2459,7 @@ ProcCreateColormap(register ClientPtr client)
return(result);
}
client->errorValue = stuff->visual;
return(BadValue);
return(BadMatch);
}
int