forked from enlightenment/efl
eina: don't try close dummy handle.
This commit is contained in:
parent
6113a3b767
commit
caf934e005
|
@ -320,7 +320,7 @@ eina_file_real_close(Eina_File *file)
|
|||
if (file->global_map != MAP_FAILED)
|
||||
munmap(file->global_map, file->length);
|
||||
|
||||
close(file->fd);
|
||||
if (file->fd != -1) close(file->fd);
|
||||
|
||||
free(file);
|
||||
}
|
||||
|
|
|
@ -378,8 +378,8 @@ eina_file_real_close(Eina_File *file)
|
|||
if (file->global_map != MAP_FAILED)
|
||||
UnmapViewOfFile(file->global_map);
|
||||
|
||||
CloseHandle(file->fm);
|
||||
CloseHandle(file->handle);
|
||||
if (file->fm) CloseHandle(file->fm);
|
||||
if (file->handle) CloseHandle(file->handle);
|
||||
|
||||
free(file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue