summaryrefslogtreecommitdiff
path: root/win32.c
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
commit5960857d9d7c6d3ed2f25ed0ee4748d22c295ee5 (patch)
treeab89e49b7a57c6c828918956512139875b199737 /win32.c
parent53d30138b2f852e0785226b1aed4c5551bb896eb (diff)
downloadopenttd-5960857d9d7c6d3ed2f25ed0ee4748d22c295ee5.tar.xz
(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
Diffstat (limited to 'win32.c')
-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;