diff --git a/frameworks/inputmethod_ability/src/input_method_agent_proxy.cpp b/frameworks/inputmethod_ability/src/input_method_agent_proxy.cpp index 62abd35..357d2f5 100644 --- a/frameworks/inputmethod_ability/src/input_method_agent_proxy.cpp +++ b/frameworks/inputmethod_ability/src/input_method_agent_proxy.cpp @@ -84,7 +84,7 @@ namespace MiscServices { return; } - data.WriteInt32(windowId); + data.WriteUint32(windowId); Remote()->SendRequest(SET_CALLING_WINDOW_ID, data, reply, option); } } // namespace MiscServices diff --git a/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp b/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp index d9bc285..e3d8f4e 100644 --- a/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp +++ b/frameworks/inputmethod_ability/src/input_method_agent_stub.cpp @@ -48,7 +48,7 @@ namespace MiscServices { break; } case SET_CALLING_WINDOW_ID: { - uint32_t windowId = data.ReadInt32; + uint32_t windowId = data.ReadUint32(); SetCallingWindow(windowId); } case ON_CURSOR_UPDATE: { @@ -89,7 +89,7 @@ namespace MiscServices { { IMSA_HILOGI("InputMethodAgentStub::SetCallingWindow"); if (!msgHandler_) { - return false; + return; } InputMethodAbility::GetInstance()->SetCallingWindow(windowId); return;