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 82f162462ec5f14b8a7b33f8f2ae97fcca763d00..79353c1879ba7c6e5eb6d77fec24d4169517edce 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 @@ -2132,6 +2132,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");