Index: third_party/freetype/src/base/ftstream.c |
diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftstream.c b/third_party/freetype/src/base/ftstream.c |
similarity index 99% |
rename from core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftstream.c |
rename to third_party/freetype/src/base/ftstream.c |
index 8037506fa317142c45342d676d11772719da0c09..759fd8fc07a66508904ea78c56117b17cdcbe875 100644 |
--- a/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftstream.c |
+++ b/third_party/freetype/src/base/ftstream.c |
@@ -16,9 +16,9 @@ |
/***************************************************************************/ |
-#include "../../include/ft2build.h" |
-#include "../../include/freetype/internal/ftstream.h" |
-#include "../../include/freetype/internal/ftdebug.h" |
+#include <ft2build.h> |
+#include FT_INTERNAL_STREAM_H |
+#include FT_INTERNAL_DEBUG_H |
/*************************************************************************/ |
@@ -728,9 +728,12 @@ |
FT_Byte* cursor; |
- if ( !fields || !stream ) |
+ if ( !fields ) |
return FT_THROW( Invalid_Argument ); |
+ if ( !stream ) |
+ return FT_THROW( Invalid_Stream_Handle ); |
+ |
cursor = stream->cursor; |
error = FT_Err_Ok; |