summaryrefslogtreecommitdiff
path: root/os2.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-03-15 12:21:15 +0000
committerdarkvater <darkvater@openttd.org>2005-03-15 12:21:15 +0000
commit2c762a67ab731213934f0f61d348d5dbad119dfa (patch)
tree177664f3d525d03590c77c1b83d742460982e210 /os2.c
parent6cbf73a6664a7681bf26755d1000cbc151834c70 (diff)
downloadopenttd-2c762a67ab731213934f0f61d348d5dbad119dfa.tar.xz
(svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge)
Diffstat (limited to 'os2.c')
-rw-r--r--os2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/os2.c b/os2.c
index eb86bdd44..064dac66b 100644
--- a/os2.c
+++ b/os2.c
@@ -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;
}