using NewStringNativeWithLength
This commit is contained in:
parent
844ae6dce2
commit
3630ebd6c2
|
@ -47,7 +47,7 @@ HRESULT objectCallback(JNIEnv *env, jobject enumerator, jint object_type, const
|
||||||
jmethodID nextObject_method;
|
jmethodID nextObject_method;
|
||||||
jboolean should_continue;
|
jboolean should_continue;
|
||||||
|
|
||||||
name = NewStringNative(env, tszName);
|
name = NewStringNativeWithLength(env, tszName, strlen(tszName));
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return false;
|
return false;
|
||||||
enum_class = (*env)->GetObjectClass(env, enumerator);
|
enum_class = (*env)->GetObjectClass(env, enumerator);
|
||||||
|
|
Loading…
Reference in New Issue