From 860242b811de9affc010d560d141ea1242c3550c Mon Sep 17 00:00:00 2001 From: darkvater Date: Wed, 13 Apr 2005 13:09:25 +0000 Subject: (svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix) --- win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'win32.c') diff --git a/win32.c b/win32.c index 8a2120d90..fc4b4f544 100644 --- a/win32.c +++ b/win32.c @@ -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; -- cgit v1.2.3-54-g00ecf