From 5960857d9d7c6d3ed2f25ed0ee4748d22c295ee5 Mon Sep 17 00:00:00 2001 From: darkvater Date: Wed, 13 Apr 2005 13:09:25 +0000 Subject: [PATCH] (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(-) diff --git a/win32.c b/win32.c index 8a2120d903..fc4b4f5447 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;