From f2f2ebca7dbb9888ee13defb3f7023af32fcec9d Mon Sep 17 00:00:00 2001 From: dengyutao Date: Wed, 21 Jun 2023 06:43:28 +0000 Subject: [PATCH] =?UTF-8?q?update=20ipc/native/src/mock/source/binder=5Fin?= =?UTF-8?q?voker.cpp.=20ipc=20=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dengyutao --- ipc/native/src/mock/source/binder_invoker.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ipc/native/src/mock/source/binder_invoker.cpp b/ipc/native/src/mock/source/binder_invoker.cpp index 0609f13..64ce0e2 100644 --- a/ipc/native/src/mock/source/binder_invoker.cpp +++ b/ipc/native/src/mock/source/binder_invoker.cpp @@ -140,13 +140,15 @@ bool BinderInvoker::TranslateDBinderProxy(int handle, MessageParcel &parcel) #else if (flat->hdr.type == BINDER_TYPE_HANDLE && flat->cookie == IRemoteObject::IF_PROT_DATABUS && flat->handle < IPCProcessSkeleton::DBINDER_HANDLE_BASE) { - MessageParcel data, reply; + MessageParcel data; + MessageParcel reply; MessageOption option; if (SendRequest(handle, GET_PID_UID, data, reply, option) != ERR_NONE) { ZLOGE(LABEL, "get pid and uid failed"); return false; } - MessageParcel data2, reply2; + MessageParcel data2; + MessageParcel reply2; MessageOption option2; data2.WriteUint32(reply.ReadUint32()); // pid data2.WriteUint32(reply.ReadUint32()); // uid @@ -822,7 +824,8 @@ void BinderInvoker::StopWorkThread() bool BinderInvoker::PingService(int32_t handle) { - MessageParcel data, reply; + MessageParcel data; + MessageParcel reply; MessageOption option; int result = SendRequest(handle, PING_TRANSACTION, data, reply, option); return (result == ERR_NONE); -- GitLab