From 2c762a67ab731213934f0f61d348d5dbad119dfa Mon Sep 17 00:00:00 2001 From: darkvater Date: Tue, 15 Mar 2005 12:21:15 +0000 Subject: (svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge) --- os2.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'os2.c') 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; } -- cgit v1.2.3-70-g09d2