diff --git a/frameworks/wms/lite_wm_requestor.cpp b/frameworks/wms/lite_wm_requestor.cpp index a73c8d4715986ddc8eb701e1a097cd80ad758c93..a3823ad7824cdeb812ad829782cc28d782603a1c 100755 --- a/frameworks/wms/lite_wm_requestor.cpp +++ b/frameworks/wms/lite_wm_requestor.cpp @@ -98,13 +98,15 @@ void LiteWMRequestor::ClientRegister() uint8_t tmpData[DEFAULT_IPC_SIZE]; IpcIoInit(&io, tmpData, DEFAULT_IPC_SIZE, 1); - objectStub_.func = WmsMsgHandler; - objectStub_.args = nullptr; - objectStub_.isRemote = false; - sid_.handle = IPC_INVALID_HANDLE; - sid_.token = SERVICE_TYPE_ANONYMOUS; - sid_.cookie = reinterpret_cast(&objectStub_); - WriteRemoteObject(&io, &sid_); + SvcIdentity svc; + IpcObjectStub objectStub; + objectStub.func = WmsMsgHandler; + objectStub.args = nullptr; + objectStub.isRemote = false; + svc.handle = IPC_INVALID_HANDLE; + svc.token = SERVICE_TYPE_ANONYMOUS; + svc.cookie = reinterpret_cast(&objectStub); + WriteRemoteObject(&io, &svc); int32_t ret = proxy_->Invoke(proxy_, LiteWMS_ClientRegister, &io, NULL, Callback); if (ret != 0) { GRAPHIC_LOGE("ClientRegister failed, ret=%d", ret);