diff --git a/app/src/main/cpp/MicroPhoto.cpp b/app/src/main/cpp/MicroPhoto.cpp index e17bca9e..c33b6f5a 100644 --- a/app/src/main/cpp/MicroPhoto.cpp +++ b/app/src/main/cpp/MicroPhoto.cpp @@ -6,6 +6,7 @@ #include "TerminalDevice.h" #include "PhoneDevice.h" #include "PhoneDevice2.h" +#include #include #include #include @@ -689,12 +690,12 @@ Java_com_xypower_mpapp_MicroPhotoService_infoLog( if (env->GetStringUTFLength(msg) <=0) { - return JNI_FALSE; + return; } const char *msgStr = env->GetStringUTFChars(msg, 0); XYLOG(XYLOG_SEVERITY_INFO, msgStr); - env->ReleaseStringUTFChars(outputPath, outputPathStr); + env->ReleaseStringUTFChars(msg, msgStr); } extern "C" JNIEXPORT void JNICALL