1
0
Fork 0
forked from len0rd/rockbox

mikmod plugin: Remove bogus doubled return statement

Stick to the safer version of those two.

Tested mikmod still works with some nice Necros .s3m files.

Change-Id: I6774cdf3345a4c89b2f9cf3bb8d832963ca30c38
This commit is contained in:
Thomas Jarosch 2014-12-22 22:33:28 +01:00
parent 71c0516d52
commit b681e932a9

View file

@ -138,7 +138,6 @@ static int _mm_FileReader_Eof(MREADER* reader)
//return feof(((MFILEREADER*)reader)->file); //return feof(((MFILEREADER*)reader)->file);
int size = filesize(((MFILEREADER*)reader)->file); int size = filesize(((MFILEREADER*)reader)->file);
int offset = lseek(((MFILEREADER*)reader)->file, 0, SEEK_CUR); int offset = lseek(((MFILEREADER*)reader)->file, 0, SEEK_CUR);
return offset < 0;
return (size <= 0 || offset < 0 || offset >= size) ? 1 : 0; return (size <= 0 || offset < 0 || offset >= size) ? 1 : 0;
} }