*/*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
diff --git a/ChangeLog b/ChangeLog
index 2e2cf19..fd48a37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2014-11-25 Werner Lemberg <wl@gnu.org>
+ */*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
*/*: s/Invalid_Argument/Invalid_Outline/ where appropriate.
2014-11-25 Werner Lemberg <wl@gnu.org>
diff --git a/src/base/ftlcdfil.c b/src/base/ftlcdfil.c
index 1f23c4c..d8bcbbf 100644
--- a/src/base/ftlcdfil.c
+++ b/src/base/ftlcdfil.c
@@ -289,7 +289,10 @@
FT_Library_SetLcdFilterWeights( FT_Library library,
unsigned char *weights )
{
- if ( !library || !weights )
+ if ( !library )
+ return FT_THROW( Invalid_Library_Handle );
+
+ if ( !weights )
return FT_THROW( Invalid_Argument );
ft_memcpy( library->lcd_weights, weights, 5 );
@@ -311,7 +314,7 @@
if ( !library )
- return FT_THROW( Invalid_Argument );
+ return FT_THROW( Invalid_Library_Handle );
switch ( filter )
{
diff --git a/src/base/ftstroke.c b/src/base/ftstroke.c
index 82dfa66..c63e138 100644
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -795,7 +795,7 @@
if ( !library )
- return FT_THROW( Invalid_Argument );
+ return FT_THROW( Invalid_Library_Handle );
memory = library->memory;