1
0
Fork 0

(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)

release/0.4.5
darkvater 2005-04-13 13:09:25 +00:00
parent 02f5818912
commit 860242b811
1 changed files with 2 additions and 1 deletions

View File

@ -1815,12 +1815,13 @@ char *FiosBrowseTo(const FiosItem *item)
case FIOS_TYPE_PARENT:
s = strrchr(path, '\\');
if (s != NULL) *s = '\0';
if (path[2] == '\0' ) strcat(path, "\\");
break;
case FIOS_TYPE_DIR:
s = strchr(item->name, '\\');
if (s != NULL) *s = '\0';
if (path[3]!= '\0' ) strcat(path, "\\");
if (path[3] != '\0' ) strcat(path, "\\");
strcat(path, item->name);
break;