diff options
author | darkvater <darkvater@openttd.org> | 2005-04-13 13:09:25 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-04-13 13:09:25 +0000 |
commit | 860242b811de9affc010d560d141ea1242c3550c (patch) | |
tree | ab89e49b7a57c6c828918956512139875b199737 | |
parent | 02f581891243a9f16562f48a3a5ea544f0df94a1 (diff) | |
download | openttd-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |