* eet: don't open file two small to be valid.

SVN revision: 54491
This commit is contained in:
Cedric BAIL 2010-11-12 10:31:07 +00:00
parent cc01698872
commit 298fd33a1a
1 changed files with 1 additions and 2 deletions

View File

@ -1555,8 +1555,7 @@ eet_open(const char *file,
goto open_error; goto open_error;
} }
if ((mode == EET_FILE_MODE_READ) && if (file_stat.st_size < ((int)sizeof(int) * 3))
(file_stat.st_size < ((int)sizeof(int) * 3)))
{ {
fclose(fp); fclose(fp);
fp = NULL; fp = NULL;