This commit is contained in:
Adam D. Ruppe 2020-03-20 14:08:31 -04:00
parent a698fe5673
commit abb98b54df
1 changed files with 1 additions and 1 deletions

2
jni.d
View File

@ -1240,7 +1240,7 @@ private enum ImportImplementationString = q{
auto len = (*env).GetStringLength(env, jret);
auto ptr = (*env).GetStringChars(env, jret, null);
static if(is(T == wstring)) {
static if(is(typeof(return) == wstring)) {
if(ptr !is null) {
ret = ptr[0 .. len].idup;
(*env).ReleaseStringChars(env, jret, ptr);