From 39351322bc18033473086e324161501af4da191c Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 12 Jun 2024 11:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/MicroPhoto.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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