forked from len0rd/rockbox
rbutil: Upps.. i hope the last one. :-/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13689 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
802db8e83f
commit
f5936c062f
1 changed files with 3 additions and 1 deletions
|
@ -207,7 +207,7 @@ wxArrayString getPossibleMountPoints()
|
|||
wxArrayString tempList;
|
||||
|
||||
FILE *fp = fopen( "/proc/mounts", "r" );
|
||||
if( !fp ) return wxT("");
|
||||
if( !fp ) return tempList;
|
||||
char *dev, *dir;
|
||||
while( fscanf( fp, "%as %as %*s %*s %*s %*s", &dev, &dir ) != EOF )
|
||||
{
|
||||
|
@ -217,6 +217,8 @@ wxArrayString getPossibleMountPoints()
|
|||
free( dir );
|
||||
}
|
||||
fclose( fp );
|
||||
|
||||
return tempList;
|
||||
}
|
||||
|
||||
wxString resolve_mount_point( const wxString device )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue