From 36dff3986061151d5ef0996231838d93532bc724 Mon Sep 17 00:00:00 2001 From: yadeno Date: Tue, 12 Apr 2022 15:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yadeno --- .../inputmethod_ability/src/input_method_agent_proxy.cpp | 2 +- .../inputmethod_ability/src/input_method_agent_stub.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;