mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
[Bugfix] tree.c tree_get_file_position() case insensitive search
some targets have case sensitive filesystems Change-Id: I50744b8226318c3dea3db375e545dbd52998544f
This commit is contained in:
parent
fb96ae2cc9
commit
d5db4202ab
1 changed files with 4 additions and 0 deletions
|
@ -378,7 +378,11 @@ static int tree_get_file_position(char * filename)
|
||||||
/* use lastfile to determine the selected item (default=0) */
|
/* use lastfile to determine the selected item (default=0) */
|
||||||
for (i=0; i < tc.filesindir; i++)
|
for (i=0; i < tc.filesindir; i++)
|
||||||
{
|
{
|
||||||
|
#if ((CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(__APPLE__) || defined(_WIN32) || defined(__CYGWIN__))
|
||||||
if (!strcasecmp(entries[i].name, filename))
|
if (!strcasecmp(entries[i].name, filename))
|
||||||
|
#else
|
||||||
|
if (!strcmp(entries[i].name, filename))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
ret = i;
|
ret = i;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue