diff options
author | speidy <speidy@gmail.com> | 2013-11-04 08:13:46 +0200 |
---|---|---|
committer | speidy <speidy@gmail.com> | 2013-11-04 08:13:46 +0200 |
commit | daf22b79f616799e9364209b07989f7b5c8afacc (patch) | |
tree | 1c08f7ff5ea868c2f262a8b5a8fe0f8d91135e47 /libxrdp | |
parent | 5591c19b3f158d637a3f767ef1c39b9cc4463304 (diff) | |
download | xrdp-proprietary-daf22b79f616799e9364209b07989f7b5c8afacc.tar.gz xrdp-proprietary-daf22b79f616799e9364209b07989f7b5c8afacc.zip |
libxrdp: fix in processing client monitor data
Diffstat (limited to 'libxrdp')
-rw-r--r-- | libxrdp/xrdp_sec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index dd0e2cd6..3ee9242c 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -540,7 +540,7 @@ xrdp_sec_process_logon_info(struct xrdp_sec *self, struct stream *s) { return 1; } - in_uint32_le(s, tzone); /* len of timetone */ + in_uint32_le(s, tzone); /* len of timezone */ in_uint8s(s, 62); /* skip */ in_uint8s(s, 22); /* skip misc. */ in_uint8s(s, 62); /* skip */ @@ -993,14 +993,14 @@ xrdp_sec_process_mcs_data_monitors(struct xrdp_sec *self, struct stream *s) /* Add client_monitor_data to client_info struct, will later pass to X11rdp */ for (index = 0; index < monitorCount; index++) { - in_uint32_le(s, client_info->minfo->left); - in_uint32_le(s, client_info->minfo->top); - in_uint32_le(s, client_info->minfo->right); - in_uint32_le(s, client_info->minfo->bottom); - in_uint32_le(s, client_info->minfo->is_primary); + in_uint32_le(s, client_info->minfo[index].left); + in_uint32_le(s, client_info->minfo[index].top); + in_uint32_le(s, client_info->minfo[index].right); + in_uint32_le(s, client_info->minfo[index].bottom); + in_uint32_le(s, client_info->minfo[index].is_primary); - g_writeln("got a monitor: left= %d, top= %d, right= %d, bottom= %d, is_primary?= %d", client_info->minfo->left, - client_info->minfo->top, client_info->minfo->right, client_info->minfo->bottom, client_info->minfo->is_primary); + g_writeln("got a monitor: left= %d, top= %d, right= %d, bottom= %d, is_primary?= %d", client_info->minfo[index].left, + client_info->minfo[index].top, client_info->minfo[index].right, client_info->minfo[index].bottom, client_info->minfo[index].is_primary); } return 0; } |