зеркало из https://github.com/stride3d/freetype.git
* builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of
mmap (which might happen on some RTOS). From Savannah patch #5909.
This commit is contained in:
Родитель
106eaf1dbb
Коммит
5077e83e11
|
@ -1,3 +1,8 @@
|
|||
2007-05-04 harry@kdevelop.org
|
||||
|
||||
* builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of
|
||||
mmap (which might happen on some RTOS). From Savannah patch #5909.
|
||||
|
||||
2007-05-03 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/base/ftobjs.c (FT_Set_Char_Size): Simplify code.
|
||||
|
|
|
@ -291,7 +291,8 @@
|
|||
file,
|
||||
0 );
|
||||
|
||||
if ( (long)stream->base != -1 )
|
||||
/* on some RTOS, mmap might return 0 */
|
||||
if ( (long)stream->base != -1 && stream->base != NULL )
|
||||
stream->close = ft_close_stream_by_munmap;
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче