diff options
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 56048197f..bee76a1d6 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -102,11 +102,14 @@ const char *FiosBrowseTo(const FiosItem *item) s[0] = '\0'; // Remove last path separator character, so we can go up one level. } s = strrchr(path, PATHSEPCHAR); - if (s != NULL) s[1] = '\0'; // go up a directory + if (s != NULL) { + s[1] = '\0'; // go up a directory #if defined(__MORPHOS__) || defined(__AMIGAOS__) /* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */ - else if ((s = strrchr(path, ':')) != NULL) s[1] = '\0'; + } else if ((s = strrchr(path, ':')) != NULL) { + s[1] = '\0'; #endif + } break; } |