summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-12-10 00:43:33 -0800
committerJay Sorg <jay.sorg@gmail.com>2016-12-10 00:43:33 -0800
commit7a1a481ff997d64028de6f0cdc5ab6b42b28f91d (patch)
tree30182da08e041e0598092a9c6897c63925eca2a7
parent2f8d3ba9da68c120a5a4f156a0da06c135b9e862 (diff)
downloadxrdp-proprietary-7a1a481ff997d64028de6f0cdc5ab6b42b28f91d.tar.gz
xrdp-proprietary-7a1a481ff997d64028de6f0cdc5ab6b42b28f91d.zip
use defines for flags
-rw-r--r--libxrdp/xrdp_caps.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c
index bb1cd619..bfba63a0 100644
--- a/libxrdp/xrdp_caps.c
+++ b/libxrdp/xrdp_caps.c
@@ -870,17 +870,10 @@ xrdp_caps_send_demand_active(struct xrdp_rdp *self)
out_uint16_le(s, RDP_CAPSET_INPUT); /* 13(0xd) */
out_uint16_le(s, RDP_CAPLEN_INPUT); /* 88(0x58) */
- /* INPUT_FLAG_SCANCODES 0x0001
- INPUT_FLAG_MOUSEX 0x0004
- INPUT_FLAG_UNICODE 0x0010
- INPUT_FLAG_FASTPATH_INPUT 0x0008
- INPUT_FLAG_FASTPATH_INPUT2 0x0020 */
- flags = 0x0001 | 0x0004 | 0x0010;
+ flags = INPUT_FLAG_SCANCODES | INPUT_FLAG_MOUSEX | INPUT_FLAG_UNICODE;
if (self->client_info.use_fast_path & 2)
{
- /* 0x0008 INPUT_FLAG_FASTPATH_INPUT */
- /* 0x0020 INPUT_FLAG_FASTPATH_INPUT2 */
- flags |= 0x0008 | 0x0020;
+ flags |= INPUT_FLAG_FASTPATH_INPUT | INPUT_FLAG_FASTPATH_INPUT2;
}
out_uint16_le(s, flags);
out_uint8s(s, 82);