summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-04-06 11:12:03 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-04-06 11:12:03 -0700
commit8db6dd3f77548df571085bed9416554fab52db30 (patch)
tree01df367c5fdf1d7a8b8fdf8ab5d6a64ee83d4cc0 /libxrdp
parent6588c52aabd129fa5cf06043cf752c9809ef57f7 (diff)
downloadxrdp-proprietary-8db6dd3f77548df571085bed9416554fab52db30.tar.gz
xrdp-proprietary-8db6dd3f77548df571085bed9416554fab52db30.zip
libxrdp: added #ifdef for mppc
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_rdp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index c64f0a61..93e91765 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -300,7 +300,9 @@ xrdp_rdp_send_data(struct xrdp_rdp* self, struct stream* s,
int sec_offset;
int rdp_offset;
struct stream ls;
+#if defined(XRDP_FREERDP1)
struct rdp_mppc_enc* mppc_enc;
+#endif
DEBUG(("in xrdp_rdp_send_data"));
s_pop_layer(s, rdp_hdr);
@@ -311,6 +313,7 @@ xrdp_rdp_send_data(struct xrdp_rdp* self, struct stream* s,
ctype = 0;
clen = len;
tocomplen = pdulen - 18;
+#if defined(XRDP_FREERDP1)
if (self->client_info.rdp_compression && self->session->up_and_running)
{
mppc_enc = (struct rdp_mppc_enc*)(self->mppc_enc);
@@ -348,7 +351,7 @@ xrdp_rdp_send_data(struct xrdp_rdp* self, struct stream* s,
g_writeln("mppc_encode not ok");
}
}
-
+#endif
out_uint16_le(s, pdulen);
out_uint16_le(s, pdutype);
out_uint16_le(s, self->mcs_channel);