From 0c03dfe097ca1a81d2570694f72cabecdab74ef8 Mon Sep 17 00:00:00 2001 From: marui Date: Wed, 1 Feb 2023 17:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=91=8A=E8=AD=A6=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marui Change-Id: Iff86e8d2f6d636ce97e0d05e55dad8074e03705f --- .../src/napi_accessibility_element.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interfaces/kits/napi/accessibility_extension_module_loader/src/napi_accessibility_element.cpp b/interfaces/kits/napi/accessibility_extension_module_loader/src/napi_accessibility_element.cpp index 72f3ea35..01ca386d 100644 --- a/interfaces/kits/napi/accessibility_extension_module_loader/src/napi_accessibility_element.cpp +++ b/interfaces/kits/napi/accessibility_extension_module_loader/src/napi_accessibility_element.cpp @@ -410,7 +410,9 @@ void NAccessibilityElement::AttributeValueComplete(napi_env env, napi_status sta HILOG_DEBUG("result is %{public}d", callbackInfo->ret_); result[PARAM0] = CreateBusinessError(env, callbackInfo->ret_); if (callbackInfo->callback_) { - napi_value callback, returnVal, undefined; + napi_value callback; + napi_value returnVal; + napi_value undefined; napi_get_reference_value(env, callbackInfo->callback_, &callback); napi_get_undefined(env, &undefined); napi_call_function(env, undefined, callback, ARGS_SIZE_TWO, result, &returnVal);