mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
bugfix2
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@643 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
027c898ca1
commit
8c2a366166
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue