Commit 2282f341d6aae03f4c8d09a0922a7ba6f25e7643

Werner Lemberg 2002-03-28T14:21:15

* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.

diff --git a/ChangeLog b/ChangeLog
index c05b0df..08872c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-28  KUSANO Takayuki  <AE5T-KSN@asahi-net.or.jp>
+
+	* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.
+
 2002-03-28  Werner Lemberg  <wl@gnu.org>
 
 	* include/freetype/internal/psaux.h (PSAux_ServiceRec): Fix
diff --git a/src/sfnt/sfdriver.c b/src/sfnt/sfdriver.c
index c698022..8f29a2b 100644
--- a/src/sfnt/sfdriver.c
+++ b/src/sfnt/sfdriver.c
@@ -146,7 +146,7 @@
       }
     }
     
-    if ( found_win )
+    if ( found_win != -1 )
     {
       FT_Memory    memory = face->root.memory;
       TT_NameEntryRec*  name   = face->name_table.names + found_win;
@@ -168,10 +168,10 @@
       goto Exit;
     }
 
-    if ( found_apple )
+    if ( found_apple != -1 )
     {
       FT_Memory         memory = face->root.memory;
-      TT_NameEntryRec*  name   = face->name_table.names + found_win;
+      TT_NameEntryRec*  name   = face->name_table.names + found_apple;
       FT_UInt           len    = name->stringLength;
       FT_Error          error;