mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 17:43:35 -04:00
update interfaces/ipc/src/distributed_input_sink_stub.cpp.
Signed-off-by: ry521 <renyi50@huawei.com>
This commit is contained in:
@@ -79,7 +79,7 @@ int32_t DistributedInputSinkStub::InitInner(MessageParcel &data, MessageParcel &
|
||||
{
|
||||
if (!HasEnableDHPermission()) {
|
||||
DHLOGE("The caller has no ENABLE_DISTRIBUTED_HARDWARE permission.");
|
||||
return ERR_DH_INPUT_CLIENT_STOP_FAIL;
|
||||
return ERR_DH_INPUT_SINK_ENABLE_PERMISSION_CHECK_FAIL;
|
||||
}
|
||||
DHLOGI("DistributedInputSinkStub InitInner start");
|
||||
int32_t ret = Init();
|
||||
@@ -94,7 +94,7 @@ int32_t DistributedInputSinkStub::ReleaseInner(MessageParcel &data, MessageParce
|
||||
{
|
||||
if (!HasEnableDHPermission()) {
|
||||
DHLOGE("The caller has no ENABLE_DISTRIBUTED_HARDWARE permission.");
|
||||
return ERR_DH_INPUT_CLIENT_STOP_FAIL;
|
||||
return ERR_DH_INPUT_SINK_ENABLE_PERMISSION_CHECK_FAIL;
|
||||
}
|
||||
int32_t ret = Release();
|
||||
if (!reply.WriteInt32(ret)) {
|
||||
|
||||
Reference in New Issue
Block a user