From ae58d349c1cf5d63ad3616c485baa858350978d5 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Sat, 4 Nov 2006 19:34:37 +0200 Subject: [PATCH] CreateColormap: fix return value (bug #7083) Return BadMatch when an unsupported visual type is given, not BadValue -- this is correct according to the spec. --- dix/dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/dispatch.c b/dix/dispatch.c index d8e3ae79b..26cb54445 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -2520,7 +2520,7 @@ ProcCreateColormap(register ClientPtr client) return(result); } client->errorValue = stuff->visual; - return(BadValue); + return(BadMatch); } int