diff options
author | darkvater <darkvater@openttd.org> | 2005-03-15 12:21:15 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-03-15 12:21:15 +0000 |
commit | 2c762a67ab731213934f0f61d348d5dbad119dfa (patch) | |
tree | 177664f3d525d03590c77c1b83d742460982e210 /os2.c | |
parent | 6cbf73a6664a7681bf26755d1000cbc151834c70 (diff) | |
download | openttd-2c762a67ab731213934f0f61d348d5dbad119dfa.tar.xz |
(svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge)
Diffstat (limited to 'os2.c')
-rw-r--r-- | os2.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -112,8 +112,8 @@ FiosItem *FiosGetSavegameList(int *num, int mode) while ((dirent = readdir(dir)) != NULL) { append_path(filename, _fios_path, dirent->d_name); if (!stat(filename, &sb) && S_ISDIR(sb.st_mode) && - strcmp(fd.cFileName, ".") != 0 && - strcmp(fd.cFileName, "..") != 0) { + strcmp(filename, ".") != 0 && + strcmp(filename, "..") != 0) { fios = FiosAlloc(); fios->type = FIOS_TYPE_DIR; fios->mtime = 0; @@ -239,10 +239,9 @@ FiosItem *FiosGetScenarioList(int *num, int mode) if (dir != NULL) { while ((dirent = readdir(dir)) != NULL) { append_path(filename, _fios_path, dirent->d_name); - if (!stat(filename, &sb) && (S_ISDIR(sb.st_mode) - strcmp(dirent->d_name, ".") != 0 && - strcmp(dirent->d_name, "..") != 0 && - ) { + if (!stat(filename, &sb) && S_ISDIR(sb.st_mode) && + strcmp(filename, ".") != 0 && + strcmp(filename, "..") != 0) { fios = FiosAlloc(); fios->type = FIOS_TYPE_DIR; fios->mtime = 0; @@ -679,5 +678,6 @@ const HalMusicDriver _os2_music_driver = { bool InsertTextBufferClipboard(Textbuf *tb) { + // TODO return false; } |