From 8c2a36616608c764fe7e3dc87886f848a1b5481c Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 4 Mar 2009 22:06:40 +0000 Subject: [PATCH] bugfix2 git-svn-id: file:///home/notaz/opt/svn/PicoDrive@643 be3aeb3a-fb24-0410-a615-afba39da0efa --- platform/common/input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/common/input.c b/platform/common/input.c index 1dae2bd6..0f6b6e40 100644 --- a/platform/common/input.c +++ b/platform/common/input.c @@ -426,9 +426,10 @@ const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix) return NULL; name = in_devices[dev_id].name; - if (name == NULL) - return NULL; + if (name == NULL || !skip_pfix) + return name; + /* skip prefix */ tmp = strchr(name, ':'); if (tmp != NULL) name = tmp + 1; -- 2.39.5