[PATCH] xf86-input-magictouch: Return proper default for unknown values in pInfo->device_control.

Terry Lambert tlambert at chromium.org
Fri Jul 15 17:23:22 PDT 2011


Signed-off-by: Terry Lambert <tlambert at chromium.org>
Reviewed-by: Stephane Marchesin <marcheu at chromium.org>
---
 src/xf86MagicTouch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/xf86MagicTouch.c b/src/xf86MagicTouch.c
index 3056426..a48d2b6 100644
--- a/src/xf86MagicTouch.c
+++ b/src/xf86MagicTouch.c
@@ -308,7 +308,7 @@ xf86MagicControl(DeviceIntPtr dev,
 			
 		default:
 			ErrorF("unsupported mode %d\n", mode);
-			return !Success;
+			return BadValue;
 	} /* switch (mode) */
 	
 	return Success;
-- 
1.7.3.1



More information about the xorg-devel mailing list