6952043: Incorrect JNI calls in fontpath.c
authorigor
Thu, 10 Jun 2010 15:00:30 -0700
changeset 5752 02bd145a47f6
parent 5751 5f6d488b1972
child 5753 e0ee3917e318
6952043: Incorrect JNI calls in fontpath.c Reviewed-by: jgodinez, prr
jdk/src/windows/native/sun/font/fontpath.c
--- a/jdk/src/windows/native/sun/font/fontpath.c	Tue Jun 08 17:52:47 2010 +0100
+++ b/jdk/src/windows/native/sun/font/fontpath.c	Thu Jun 10 15:00:30 2010 -0700
@@ -154,7 +154,7 @@
     fullname = JNU_NewStringPlatform(env, lpelfe->elfFullName);
     fullnameLC = (*env)->CallObjectMethod(env, fullname,
                                           fmi->toLowerCaseMID, fmi->locale);
-    (*env)->CallObjectMethod(env, fmi->list, fmi->addMID, fullname);
+    (*env)->CallBooleanMethod(env, fmi->list, fmi->addMID, fullname);
     (*env)->CallObjectMethod(env, fmi->fontToFamilyMap,
                              fmi->putMID, fullnameLC, fmi->family);
     return 1;
@@ -238,7 +238,7 @@
                                  wcslen((LPWSTR)lpelfe->elfFullName));
     fullnameLC = (*env)->CallObjectMethod(env, fullname,
                                           fmi->toLowerCaseMID, fmi->locale);
-    (*env)->CallObjectMethod(env, fmi->list, fmi->addMID, fullname);
+    (*env)->CallBooleanMethod(env, fmi->list, fmi->addMID, fullname);
     (*env)->CallObjectMethod(env, fmi->fontToFamilyMap,
                              fmi->putMID, fullnameLC, fmi->family);
     return 1;