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:
Laurence Withers 2006-11-04 19:34:37 +02:00 committed by Daniel Stone
parent 96f78e3886
commit ae58d349c1

View File

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