未验证 提交 07b0ba93 编写于 作者: O openharmony_ci 提交者: Gitee

!6266 【轻量级 PR】:#I5DTO3

Merge pull request !6266 from Annie_wang/N/A
...@@ -187,7 +187,7 @@ The development procedure is as follows: ...@@ -187,7 +187,7 @@ The development procedure is as follows:
auto *hdfUserAuthInterfaceHost = new (std::nothrow) HdfUserAuthInterfaceHost; auto *hdfUserAuthInterfaceHost = new (std::nothrow) HdfUserAuthInterfaceHost;
if (hdfUserAuthInterfaceHost == nullptr) { if (hdfUserAuthInterfaceHost == nullptr) {
HDF_LOGE("%{public}s: failed to create create HdfUserAuthInterfaceHost object", __func__); HDF_LOGE("%{public}s: Failed to create HdfUserAuthInterfaceHost object", __func__);
return HDF_FAILURE; return HDF_FAILURE;
} }
...@@ -271,7 +271,7 @@ The development procedure is as follows: ...@@ -271,7 +271,7 @@ The development procedure is as follows:
int32_t ret = OpenEditSession(userId, &challengeU64); int32_t ret = OpenEditSession(userId, &challengeU64);
challenge.resize(sizeof(uint64_t)); challenge.resize(sizeof(uint64_t));
if (memcpy_s(&challenge[0], challenge.size(), &challengeU64, sizeof(uint64_t)) != EOK) { if (memcpy_s(&challenge[0], challenge.size(), &challengeU64, sizeof(uint64_t)) != EOK) {
IAM_LOGE("challengeU64 copy failed"); IAM_LOGE("Failed to copy challengeU64");
return RESULT_BAD_COPY; return RESULT_BAD_COPY;
} }
GlobalUnLock(); GlobalUnLock();
...@@ -310,7 +310,7 @@ The development procedure is as follows: ...@@ -310,7 +310,7 @@ The development procedure is as follows:
CoAuthSchedule scheduleInfo; CoAuthSchedule scheduleInfo;
int32_t ret = CheckEnrollPermission(checkParam, &scheduleInfo.scheduleId); int32_t ret = CheckEnrollPermission(checkParam, &scheduleInfo.scheduleId);
if (ret != RESULT_SUCCESS) { if (ret != RESULT_SUCCESS) {
IAM_LOGE("Permission check failed"); IAM_LOGE("Failed to check permission");
GlobalUnLock(); GlobalUnLock();
return ret; return ret;
} }
...@@ -356,7 +356,7 @@ The development procedure is as follows: ...@@ -356,7 +356,7 @@ The development procedure is as follows:
bool isUpdate; bool isUpdate;
int32_t ret = GetIsUpdate(&isUpdate); int32_t ret = GetIsUpdate(&isUpdate);
if (ret != RESULT_SUCCESS) { if (ret != RESULT_SUCCESS) {
IAM_LOGE("get isUpdate failed"); IAM_LOGE("Failed to get isUpdate");
return ret; return ret;
} }
if (isUpdate) { if (isUpdate) {
...@@ -416,7 +416,7 @@ The development procedure is as follows: ...@@ -416,7 +416,7 @@ The development procedure is as follows:
} }
int32_t ret = GenerateSolutionFunc(solutionIn, &schedulesGet, &scheduleIdNum); int32_t ret = GenerateSolutionFunc(solutionIn, &schedulesGet, &scheduleIdNum);
if (ret != RESULT_SUCCESS) { if (ret != RESULT_SUCCESS) {
IAM_LOGE("generate solution failed"); IAM_LOGE("Failed to generate solution");
GlobalUnLock(); GlobalUnLock();
return ret; return ret;
} }
...@@ -463,7 +463,7 @@ The development procedure is as follows: ...@@ -463,7 +463,7 @@ The development procedure is as follows:
} }
info.token.resize(sizeof(UserAuthTokenHal)); info.token.resize(sizeof(UserAuthTokenHal));
if (memcpy_s(&info.token[0], info.token.size(), &authTokenHal, sizeof(authTokenHal)) != EOK) { if (memcpy_s(&info.token[0], info.token.size(), &authTokenHal, sizeof(authTokenHal)) != EOK) {
IAM_LOGE("copy authToken failed"); IAM_LOGE("Failed to copy authToken");
DestoryBuffer(scheduleResultBuffer); DestoryBuffer(scheduleResultBuffer);
GlobalUnLock(); GlobalUnLock();
return RESULT_BAD_COPY; return RESULT_BAD_COPY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册