diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-01-22 14:09:29 +1000 |
---|---|---|
committer | Jason Gerecke <killertofu@gmail.com> | 2013-01-23 11:22:49 -0800 |
commit | ed561f701e4b2ba60fb5d8abf881e816118880a8 (patch) | |
tree | e63d1c2f4056bd5530af81806647b89928b7ff03 | |
parent | 33cccd3fa4e5185857b2248b56509a97ed19df84 (diff) |
Setting an invalid action property should return an error
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Ping Cheng <pinglinux@gmail.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
-rw-r--r-- | src/wcmXCommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c index 713836c..56b5c67 100644 --- a/src/wcmXCommand.c +++ b/src/wcmXCommand.c @@ -843,7 +843,7 @@ int wcmSetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop, unsigned int (*action)[256] = NULL; wcmFindActionHandler(priv, property, &handler, &action); if (handler != NULL && action != NULL) - wcmSetActionProperty(dev, property, prop, checkonly, handler, action); + return wcmSetActionProperty(dev, property, prop, checkonly, handler, action); /* backwards-compatible behavior silently ignores the not-found case */ } |