From 45baef0b77f6f0e5e6230eca045dfcbb1e48c647 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 23 Mar 2009 13:32:32 +1000 Subject: dix: return BadValue as error in SetModifierMapping. Signed-off-by: Peter Hutterer Signed-off-by: Daniel Stone --- dix/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dix') diff --git a/dix/devices.c b/dix/devices.c index 3388dac8d..065b20237 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -1422,7 +1422,7 @@ ProcSetModifierMapping(ClientPtr client) rc = change_modmap(client, PickKeyboard(client), (KeyCode *)&stuff[1], stuff->numKeyPerModifier); if (rc == MappingFailed || rc == -1) - rc = BadValue; + return BadValue; if (rc != Success && rc != MappingSuccess && rc != MappingFailed && rc != MappingBusy) return rc; -- cgit v1.2.3