mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
This commit is contained in:
parent
53d30138b2
commit
5960857d9d
3
win32.c
3
win32.c
@ -1815,12 +1815,13 @@ char *FiosBrowseTo(const FiosItem *item)
|
|||||||
case FIOS_TYPE_PARENT:
|
case FIOS_TYPE_PARENT:
|
||||||
s = strrchr(path, '\\');
|
s = strrchr(path, '\\');
|
||||||
if (s != NULL) *s = '\0';
|
if (s != NULL) *s = '\0';
|
||||||
|
if (path[2] == '\0' ) strcat(path, "\\");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FIOS_TYPE_DIR:
|
case FIOS_TYPE_DIR:
|
||||||
s = strchr(item->name, '\\');
|
s = strchr(item->name, '\\');
|
||||||
if (s != NULL) *s = '\0';
|
if (s != NULL) *s = '\0';
|
||||||
if (path[3]!= '\0' ) strcat(path, "\\");
|
if (path[3] != '\0' ) strcat(path, "\\");
|
||||||
strcat(path, item->name);
|
strcat(path, item->name);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user