From da7101e91999a237302294ee37f3555dbf38c5bd Mon Sep 17 00:00:00 2001 From: tongkai0808fh Date: Wed, 5 Jun 2024 09:37:52 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9napi/napi=5Fquery=5Fsysca?= =?UTF-8?q?p.cpp=E6=96=87=E4=BB=B6=EF=BC=8C=E5=8C=BA=E5=88=86napi=5Fqueue?= =?UTF-8?q?=5Fasync=5Fwork=E5=BC=82=E6=AD=A5=E5=87=BD=E6=95=B0=E5=86=85?= =?UTF-8?q?=E5=A4=96=E7=9A=84SystemCapabilityAsyncContext=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tongkai0808fh --- napi/napi_query_syscap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napi/napi_query_syscap.cpp b/napi/napi_query_syscap.cpp index dee0ef4..1a9cd65 100644 --- a/napi/napi_query_syscap.cpp +++ b/napi/napi_query_syscap.cpp @@ -176,7 +176,7 @@ napi_value PreHandleSystemCapability( napi_value QuerySystemCapability(napi_env env, napi_callback_info info) { - SystemCapabilityAsyncContext *asyncContext = new SystemCapabilityAsyncContext(); + SystemCapabilityAsyncContext *asyncContext1 = new SystemCapabilityAsyncContext(); napi_value result = PreHandleSystemCapability(env, info, asyncContext); napi_value resource = nullptr; napi_create_string_utf8(env, "napi_value QuerySystemCapability", NAPI_AUTO_LENGTH, &resource); @@ -223,7 +223,7 @@ napi_value QuerySystemCapability(napi_env env, napi_callback_info info) }, (void*)asyncContext, &asyncContext->work); napi_queue_async_work(env, asyncContext->work); - delete asyncContext; + delete asyncContext1; return result; } -- Gitee From ab5940ab21a2355d74b00330324b1040236fd069 Mon Sep 17 00:00:00 2001 From: tongkai0808fh Date: Fri, 14 Jun 2024 06:42:31 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bundle.json=EF=BC=8Cfeatu?= =?UTF-8?q?re=E5=AD=97=E6=AE=B5=E6=94=B9=E4=B8=BAfeatures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tongkai0808fh --- bundle.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle.json b/bundle.json index caa571e..d8415a7 100644 --- a/bundle.json +++ b/bundle.json @@ -16,7 +16,7 @@ "name": "syscap_codec", "subsystem": "developtools", "syscap": [ "SystemCapability.Developtools.Syscap" ], - "feature": [ + "features": [ "syscap_codec_config_path", "syscap_codec_config_extern_path" ], -- Gitee