summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorHyeshik Chang <hyeshik@snu.ac.kr>2012-05-04 00:42:20 +0900
committerHyeshik Chang <hyeshik@snu.ac.kr>2012-05-04 00:42:20 +0900
commit1f2cd695b213b816fa840d24ac93487753e85f18 (patch)
tree567dcf974ea56b04a1fc28e4e927f243b9657c15 /libxrdp
parent70afd3bce69ff60ffe921cb099ebfd4ae621be08 (diff)
downloadxrdp-proprietary-1f2cd695b213b816fa840d24ac93487753e85f18.tar.gz
xrdp-proprietary-1f2cd695b213b816fa840d24ac93487753e85f18.zip
Fix endianness of virtual channel flags. This fixes the clipboard compatibility issue with Microsoft RDP clients.
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_sec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c
index 983be09f..952ff12f 100644
--- a/libxrdp/xrdp_sec.c
+++ b/libxrdp/xrdp_sec.c
@@ -730,7 +730,7 @@ xrdp_sec_process_mcs_data_channels(struct xrdp_sec* self, struct stream* s)
channel_item = (struct mcs_channel_item*)
g_malloc(sizeof(struct mcs_channel_item), 1);
in_uint8a(s, channel_item->name, 8);
- in_uint32_be(s, channel_item->flags);
+ in_uint32_le(s, channel_item->flags);
channel_item->chanid = MCS_GLOBAL_CHANNEL + (index + 1);
list_add_item(self->mcs_layer->channel_list, (long)channel_item);
DEBUG(("got channel flags %8.8x name %s", channel_item->flags,