ref: 0d4aa23e7cd92dcede111160f7b4b308d6ead648
parent: f4f9e6880036304912c9da39fa94a343131fdb82
author: Werner Lemberg <[email protected]>
date: Tue Nov 25 06:26:14 EST 2014
*/*: s/Invalid_Argument/Invalid_Stream_Handle/ where appropriate.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2014-11-25 Werner Lemberg <[email protected]>
+ */*: s/Invalid_Argument/Invalid_Stream_Handle/ where appropriate.
+
+2014-11-25 Werner Lemberg <[email protected]>
+
*/*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
2014-11-25 Werner Lemberg <[email protected]>
--- a/src/base/ftstream.c
+++ b/src/base/ftstream.c
@@ -728,8 +728,11 @@
FT_Byte* cursor;
- if ( !fields || !stream )
+ if ( !fields )
return FT_THROW( Invalid_Argument );
+
+ if ( !stream )
+ return FT_THROW( Invalid_Stream_Handle );
cursor = stream->cursor;