summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/mikmod/mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/mikmod/mmio.c b/apps/plugins/mikmod/mmio.c
index 023c56baef..6e317ca008 100644
--- a/apps/plugins/mikmod/mmio.c
+++ b/apps/plugins/mikmod/mmio.c
@@ -159,7 +159,7 @@ static int _mm_FileReader_Seek(MREADER* reader,long offset,int whence)
//return fseek(((MFILEREADER*)reader)->file,
// (whence==SEEK_SET)?offset+reader->iobase:offset,whence);
return lseek(((MFILEREADER*)reader)->file,
- (whence==SEEK_SET)?offset+reader->iobase:offset,whence);
+ (whence==SEEK_SET)?offset+reader->iobase:offset,whence) >= 0 ? 0 : -1;
}
static long _mm_FileReader_Tell(MREADER* reader)