Commit 78b09e7b authored by Erwan Tulou's avatar Erwan Tulou

skins2: kill a warning at compil

parent 6e59bfe8
......@@ -90,9 +90,13 @@ bool FT2Font::init()
return false;
}
fread( m_buffer, size, 1, file );
if( fread( m_buffer, size, 1, file ) != 1 )
{
msg_Err( getIntf(), "unexpected result for read" );
fclose( file );
return false;
}
fclose( file );
err = FT_New_Memory_Face( m_lib, (const FT_Byte*)m_buffer, size, 0,
&m_face );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment