summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-03-23 13:32:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-27 11:26:15 +1000
commit45baef0b77f6f0e5e6230eca045dfcbb1e48c647 (patch)
tree9cb4267599ac8426789430a57b47569d9c2954a1 /dix
parent603db34337a61754e0c5f71525011d10eab78411 (diff)
dix: return BadValue as error in SetModifierMapping.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'dix')
-rw-r--r--dix/devices.c2
1 files changed, 1 insertions, 1 deletions
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;