summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-04-13 13:09:25 +0000
committerdarkvater <darkvater@openttd.org>2005-04-13 13:09:25 +0000
commit860242b811de9affc010d560d141ea1242c3550c (patch)
treeab89e49b7a57c6c828918956512139875b199737
parent02f581891243a9f16562f48a3a5ea544f0df94a1 (diff)
downloadopenttd-860242b811de9affc010d560d141ea1242c3550c.tar.xz
(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
-rw-r--r--win32.c3
1 files changed, 2 insertions, 1 deletions
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;