mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 10:30:10 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -2520,7 +2520,7 @@ ProcCreateColormap(register ClientPtr client)
|
|||
return(result);
|
||||
}
|
||||
client->errorValue = stuff->visual;
|
||||
return(BadValue);
|
||||
return(BadMatch);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue