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:
roman-b 2011-08-21 04:09:13 +03:00
parent e7367f9aac
commit 2378b989ff

View File

@ -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)