channels/rail: create fixed size order struct for Server Get Application ID Response.

This commit is contained in:
roman-b 2011-08-22 02:01:40 +03:00
parent 961b5f5e49
commit e701bf1bcf
2 changed files with 3 additions and 6 deletions

View File

@ -189,14 +189,10 @@ void rail_read_server_localmovesize_order(STREAM* s, RAIL_LOCALMOVESIZE_ORDER* l
void rail_read_server_get_appid_resp_order(STREAM* s, RAIL_GET_APPID_RESP_ORDER* get_appid_resp)
{
stream_read_uint32(s, get_appid_resp->windowId); /* windowId (4 bytes) */
stream_read(s, &get_appid_resp->applicationIdBuffer[0], 512); /* applicationId (256 UNICODE chars) */
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) */
get_appid_resp->applicationId.string = &get_appid_resp->applicationIdBuffer[0];
}
void rail_read_langbar_info_order(STREAM* s, RAIL_LANGBAR_INFO_ORDER* langbar_info)

View File

@ -297,6 +297,7 @@ struct _RAIL_GET_APPID_RESP_ORDER
{
uint32 windowId;
UNICODE_STRING applicationId;
uint8 applicationIdBuffer[512];
};
typedef struct _RAIL_GET_APPID_RESP_ORDER RAIL_GET_APPID_RESP_ORDER;