forked from enlightenment/efl
parent
0fbdc23c40
commit
f153d22daf
|
@ -1252,11 +1252,8 @@ eet_open(const char *file, Eet_File_Mode mode)
|
||||||
ef->data_size = file_stat.st_size;
|
ef->data_size = file_stat.st_size;
|
||||||
ef->data = mmap(NULL, ef->data_size, PROT_READ,
|
ef->data = mmap(NULL, ef->data_size, PROT_READ,
|
||||||
MAP_SHARED, fileno(ef->fp), 0);
|
MAP_SHARED, fileno(ef->fp), 0);
|
||||||
if (ef->data == MAP_FAILED)
|
if (eet_test_close((ef->data == MAP_FAILED), ef))
|
||||||
{
|
|
||||||
ef->data = NULL;
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
ef = eet_internal_read(ef);
|
ef = eet_internal_read(ef);
|
||||||
if (!ef)
|
if (!ef)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue