summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_orders.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-08-31 21:07:40 +0000
committerjsorg71 <jsorg71>2008-08-31 21:07:40 +0000
commit683dfa9a86769cc43ed5df2654d180ad9771f9d7 (patch)
tree47361ea2554aefc079a220ac41c68f22bbef5f02 /libxrdp/xrdp_orders.c
parentbc0f9e453c3ae078a1460712f3b78f6d0cdab580 (diff)
downloadxrdp-proprietary-683dfa9a86769cc43ed5df2654d180ad9771f9d7.tar.gz
xrdp-proprietary-683dfa9a86769cc43ed5df2654d180ad9771f9d7.zip
add a comment
Diffstat (limited to 'libxrdp/xrdp_orders.c')
-rw-r--r--libxrdp/xrdp_orders.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c
index 8d94fd65..9c9ec9d3 100644
--- a/libxrdp/xrdp_orders.c
+++ b/libxrdp/xrdp_orders.c
@@ -196,10 +196,10 @@ xrdp_orders_last_bounds(struct xrdp_orders* self, struct xrdp_rect* rect)
{
return 0;
}
- if (rect->left == self->orders_state.clip_left &&
- rect->top == self->orders_state.clip_top &&
- rect->right == self->orders_state.clip_right &&
- rect->bottom == self->orders_state.clip_bottom)
+ if ((rect->left == self->orders_state.clip_left) &&
+ (rect->top == self->orders_state.clip_top) &&
+ (rect->right == self->orders_state.clip_right) &&
+ (rect->bottom == self->orders_state.clip_bottom))
{
return 1;
}
@@ -1003,6 +1003,8 @@ xrdp_orders_line(struct xrdp_orders* self, int mix_mode,
char* order_flags_ptr;
struct xrdp_pen blank_pen;
+ /* if mix mode or rop are out of range, mstsc build 6000+ will parse the orders
+ wrong */
if ((mix_mode < 1) || (mix_mode > 2)) /* TRANSPARENT(1) or OPAQUE(2) */
{
mix_mode = 1;