未验证 提交 09e63005 编写于 作者: O openharmony_ci 提交者: Gitee

!708 IPC&RPC PR660&PR666后续整改

Merge pull request !708 from lishengming14/master
......@@ -41,7 +41,7 @@ namespace OHOS {
uint64_t stubIndex = *(reinterpret_cast<const uint64_t*>(data));
uint32_t listenFd = *(reinterpret_cast<const uint32_t*>(data));
IPCProcessSkeleton *current = IPCProcessSkeleton::GetCurrent();
bool ret = current->AttachAppInfoToStubIndex(pid, uid, tokenId,
deviceId, stubIndex, listenFd);
......@@ -66,7 +66,7 @@ namespace OHOS {
uint32_t tokenId = *(reinterpret_cast<const uint32_t*>(data));
std::string deviceId = tmp;
IPCProcessSkeleton *current = IPCProcessSkeleton::GetCurrent();
bool ret = current->AttachCommAuthInfo(stub, pid, uid, tokenId,
deviceId);
......
......@@ -261,6 +261,7 @@ namespace OHOS {
uint32_t listenFd = *(reinterpret_cast<const uint32_t*>(data));
DBinderDatabusInvoker invoker;
invoker.ProcessTransaction(tr, listenFd);
delete tr;
return;
}
......@@ -272,7 +273,9 @@ namespace OHOS {
dbinder_transaction_data *tr = new dbinder_transaction_data();
DBinderDatabusInvoker invoker;
return invoker.CheckTransactionData(tr);
bool ret = invoker.CheckTransactionData(tr);
delete tr;
return ret;
}
}
......
......@@ -32,7 +32,7 @@ namespace OHOS {
if (memcpy_s(tmp, sizeof(tmp) - 1, data, size) != EOK) {
return false;
}
const char* testdata = tmp;
std::shared_ptr<Session> session = nullptr;
std::shared_ptr<DBinderRemoteListener> remoteListener = nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册