From e7c54795bb007e598b58f129e6f9bb474e89a980 Mon Sep 17 00:00:00 2001 From: Lotol Date: Mon, 26 Sep 2022 01:20:00 +0000 Subject: [PATCH 1/2] fixed 7fbf962 from https://gitee.com/lotol/appexecfwk_appexecfwk_lite/pulls/201 update services/bundlemgr_lite/src/bundle_ms_feature.cpp. Signed-off-by: Lotol --- services/bundlemgr_lite/src/bundle_ms_feature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/bundlemgr_lite/src/bundle_ms_feature.cpp b/services/bundlemgr_lite/src/bundle_ms_feature.cpp index 10f44ef..eea762a 100644 --- a/services/bundlemgr_lite/src/bundle_ms_feature.cpp +++ b/services/bundlemgr_lite/src/bundle_ms_feature.cpp @@ -626,7 +626,7 @@ uint8_t BundleMsFeature::HandleGetBundleInfosByIndex(const uint8_t funcId, IpcIo return ERR_APPEXECFWK_OBJECT_NULL; } int32_t lengthOfBundleInfo = 0; - BundleInfo *bundleInfos = GetInnerBundleInfos(req, reply, &lengthOfBundleInfo);; + BundleInfo *bundleInfos = GetInnerBundleInfos(req, reply, &lengthOfBundleInfo); int32_t index = 0; ReadInt32(req, &index); HILOG_INFO(HILOG_MODULE_APP, "BundleMS index is : %{public}d\n", index); From 06074b5d7b6200c8be78ce96b01e2444da709f24 Mon Sep 17 00:00:00 2001 From: Lotol Date: Mon, 26 Sep 2022 01:11:26 +0000 Subject: [PATCH 2/2] fixed 4107b34 from https://gitee.com/lotol/appexecfwk_appexecfwk_lite/pulls/201 update frameworks/bundle_lite/src/bundle_manager.cpp. Signed-off-by: Lotol --- frameworks/bundle_lite/src/bundle_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/bundle_lite/src/bundle_manager.cpp b/frameworks/bundle_lite/src/bundle_manager.cpp index 50be38d..d11f4dc 100644 --- a/frameworks/bundle_lite/src/bundle_manager.cpp +++ b/frameworks/bundle_lite/src/bundle_manager.cpp @@ -599,7 +599,8 @@ static uint8_t ObtainBundleInfosOneByOne(BasicInfo basicInfo, int32_t len, uint8 WriteInt32(&innerIpcIo, i); ResultOfGetBundleInfo resultOfGetBundleInfo; resultOfGetBundleInfo.bundleInfo = nullptr; - int32_t ret = bmsClient->Invoke(bmsClient, GET_BUNDLE_INFO_BY_INDEX, &innerIpcIo, &resultOfGetBundleInfo, Notify); + int32_t ret = bmsClient->Invoke(bmsClient, GET_BUNDLE_INFO_BY_INDEX, &innerIpcIo, + &resultOfGetBundleInfo, Notify); if (ret != OHOS_SUCCESS) { HILOG_ERROR(HILOG_MODULE_APP, "BundleManager ObtainBundleInfosOneByOne invoke failed: %{public}d\n", ret); return ERR_APPEXECFWK_INVOKE_ERROR;