mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
channel/rail: fix Server Get Application ID Response PDU receiving.
It is a possible error in MS-RDPERP 2.2.2.8.1.
This commit is contained in:
@@ -190,8 +190,13 @@ void rail_read_server_get_appid_resp_order(STREAM* s, RAIL_GET_APPID_RESP_ORDER*
|
||||
{
|
||||
stream_read_uint32(s, get_appid_resp->windowId); /* windowId (4 bytes) */
|
||||
|
||||
get_appid_resp->applicationId.length = 256;
|
||||
stream_read(s, get_appid_resp->applicationId.string, 256); /* applicationId (256 bytes) */
|
||||
get_appid_resp->applicationId.length = 512;
|
||||
if (get_appid_resp->applicationId.string == NULL)
|
||||
{
|
||||
get_appid_resp->applicationId.string = xmalloc(
|
||||
get_appid_resp->applicationId.length);
|
||||
}
|
||||
stream_read(s, get_appid_resp->applicationId.string, 512); /* applicationId (256 UNICODE chars) */
|
||||
}
|
||||
|
||||
void rail_read_langbar_info_order(STREAM* s, RAIL_LANGBAR_INFO_ORDER* langbar_info)
|
||||
|
||||
Reference in New Issue
Block a user