Mercurial > hg > openttd
changeset 9032:e95cf3676a54 draft
(svn r12850) -Fix (r12848): compilation was broken for some platforms
author | glx <glx@openttd.org> |
---|---|
date | Wed, 23 Apr 2008 13:36:52 +0000 |
parents | 9c6b04429f26 |
children | d2ac4904a2b2 |
files | src/fios.cpp |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fios.cpp +++ b/src/fios.cpp @@ -111,11 +111,15 @@ char *path = _fios_path; switch (item->type) { + case FIOS_TYPE_DRIVE: #if defined(WINCE) - case FIOS_TYPE_DRIVE: sprintf(path, PATHSEP ""); break; + sprintf(path, PATHSEP ""); #elif defined(WIN32) || defined(__OS2__) - case FIOS_TYPE_DRIVE: sprintf(path, "%c:" PATHSEP, item->title[0]); break; + sprintf(path, "%c:" PATHSEP, item->title[0]); #endif + /* Fallthrough */ + case FIOS_TYPE_INVALID: + break; case FIOS_TYPE_PARENT: { /* Check for possible NULL ptr (not required for UNIXes, but AmigaOS-alikes) */ @@ -152,10 +156,6 @@ snprintf(str_buffr, lengthof(str_buffr), "%s%s", path, item->name); return str_buffr; } - - case FIOS_TYPE_DRIVE: - case FIOS_TYPE_INVALID: - break; } return NULL;