[缺陷]凭据管理取消注册回调函数失败bug修改

Signed-off-by: @shi-xiaoxiao-iris <shixiaoxiao2@huawei.com>
This commit is contained in:
@shi-xiaoxiao-iris
2022-07-12 12:58:29 +08:00
parent 31b5778992
commit d5618eb3da
+1 -1
View File
@@ -26,7 +26,7 @@ IMPLEMENT_SINGLE_INSTANCE(IpcCmdRegister);
int32_t IpcCmdRegister::SetRequest(int32_t cmdCode, std::shared_ptr<IpcReq> pBaseReq, MessageParcel &data)
{
int32_t ret = DM_OK;
if (cmdCode < 0 || cmdCode >= UNREGISTER_CREDENTIAL_CALLBACK || pBaseReq == nullptr) {
if (cmdCode < 0 || cmdCode > UNREGISTER_CREDENTIAL_CALLBACK || pBaseReq == nullptr) {
LOGE("IpcCmdRegister::SetRequest cmdCode param invalid!");
return ERR_DM_INPUT_PARAMETER_EMPTY;
}