diff --git a/window_scene/session_manager/src/zidl/screen_session_manager_proxy.cpp b/window_scene/session_manager/src/zidl/screen_session_manager_proxy.cpp index 123c15c0517ac9c4e5012b1831d5a9720cc7bec4..e0eb701aef5d20f2942ce8eb2f0fc85a8f304cfa 100644 --- a/window_scene/session_manager/src/zidl/screen_session_manager_proxy.cpp +++ b/window_scene/session_manager/src/zidl/screen_session_manager_proxy.cpp @@ -2129,6 +2129,10 @@ DMError ScreenSessionManagerProxy::GetAvailableArea(DisplayId displayId, DMRect& WLOGFE("WriteInterfaceToken failed"); return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED; } + if (!data.WriteUint64(displayId)) { + WLOGFE("Write displayId failed"); + return DMError::DM_ERROR_WRITE_DATA_FAILED; + } if (Remote()->SendRequest(static_cast(DisplayManagerMessage::TRANS_ID_GET_AVAILABLE_AREA), data, reply, option) != ERR_NONE) { WLOGFE("SendRequest failed");