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 | 5960857d9d7c6d3ed2f25ed0ee4748d22c295ee5 (patch) | |
tree | ab89e49b7a57c6c828918956512139875b199737 | |
parent | 53d30138b2f852e0785226b1aed4c5551bb896eb (diff) | |
download | openttd-5960857d9d7c6d3ed2f25ed0ee4748d22c295ee5.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; |