mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 10:10:05 +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. (cherry picked from af606f9dab4d51724b4be6f43f1de7b3342c443a commit)
This commit is contained in:
parent
b94e320205
commit
00a1e648ef
1 changed files with 1 additions and 1 deletions
|
|
@ -2459,7 +2459,7 @@ ProcCreateColormap(register ClientPtr client)
|
|||
return(result);
|
||||
}
|
||||
client->errorValue = stuff->visual;
|
||||
return(BadValue);
|
||||
return(BadMatch);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue