mirror of https://github.com/adamdruppe/arsd.git
fix #246
This commit is contained in:
parent
a698fe5673
commit
abb98b54df
2
jni.d
2
jni.d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue