using NewStringNativeWithLength

This commit is contained in:
Brian Matzon 2007-04-19 22:20:36 +00:00
parent 844ae6dce2
commit 3630ebd6c2
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ HRESULT objectCallback(JNIEnv *env, jobject enumerator, jint object_type, const
jmethodID nextObject_method;
jboolean should_continue;
name = NewStringNative(env, tszName);
name = NewStringNativeWithLength(env, tszName, strlen(tszName));
if (name == NULL)
return false;
enum_class = (*env)->GetObjectClass(env, enumerator);