diff options
author | jsorg71 <jsorg71> | 2007-04-08 22:13:00 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2007-04-08 22:13:00 +0000 |
commit | d373ee9322c288d00b2614cf2573190fcacd95f8 (patch) | |
tree | eb6eac61f280dd61b15b11e5416684d99418b800 /libxrdp/xrdp_orders.c | |
parent | d3ddb22d1c75161011dff22a6aa0d352d52c1404 (diff) | |
download | xrdp-proprietary-d373ee9322c288d00b2614cf2573190fcacd95f8.tar.gz xrdp-proprietary-d373ee9322c288d00b2614cf2573190fcacd95f8.zip |
added debug out, added update sync
Diffstat (limited to 'libxrdp/xrdp_orders.c')
-rw-r--r-- | libxrdp/xrdp_orders.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c index daad906e..f8c2cd28 100644 --- a/libxrdp/xrdp_orders.c +++ b/libxrdp/xrdp_orders.c @@ -105,7 +105,7 @@ xrdp_orders_send(struct xrdp_orders* self) if (self->order_level > 0) { self->order_level--; - if (self->order_level == 0 && self->order_count > 0) + if ((self->order_level == 0) && (self->order_count > 0)) { s_mark_end(self->out_s); DEBUG(("xrdp_orders_send sending %d orders", self->order_count)); @@ -127,7 +127,7 @@ xrdp_orders_send(struct xrdp_orders* self) int APP_CC xrdp_orders_force_send(struct xrdp_orders* self) { - if (self->order_level > 0 && self->order_count > 0) + if ((self->order_level > 0) && (self->order_count > 0)) { s_mark_end(self->out_s); DEBUG(("xrdp_orders_force_send sending %d orders", self->order_count)); @@ -174,11 +174,11 @@ xrdp_orders_check(struct xrdp_orders* self, int max_size) } } size = self->out_s->p - self->order_count_ptr; - if (size < 0 || size > max_packet_size) + if ((size < 0) || (size > max_packet_size)) { return 1; } - if (size + max_size + 100 > max_packet_size) + if ((size + max_size + 100) > max_packet_size) { xrdp_orders_force_send(self); xrdp_orders_init(self); |