summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2018-10-25 13:33:36 +0900
committerKoichiro IWAO <meta@vmeta.jp>2018-11-27 15:08:22 +0900
commitd188519c0c5bd060be2c71927789359d7ef74c5c (patch)
tree4ed7b941de727d9155d31d2a6c7e7d9bc1e8031c
parentf1f699b95420a7d89caa3c3b4be81dd7cf420080 (diff)
downloadxrdp-proprietary-d188519c0c5bd060be2c71927789359d7ef74c5c.tar.gz
xrdp-proprietary-d188519c0c5bd060be2c71927789359d7ef74c5c.zip
constify more magic numbers
-rw-r--r--libxrdp/xrdp_caps.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c
index 57f41d9c..d951d19a 100644
--- a/libxrdp/xrdp_caps.c
+++ b/libxrdp/xrdp_caps.c
@@ -794,20 +794,18 @@ xrdp_caps_send_demand_active(struct xrdp_rdp *self)
caps_count++;
out_uint16_le(s, CAPSTYPE_GENERAL);
out_uint16_le(s, CAPSTYPE_GENERAL_LEN);
- out_uint16_le(s, 1); /* OS major type */
- out_uint16_le(s, 3); /* OS minor type */
+ out_uint16_le(s, OSMAJORTYPE_WINDOWS);
+ out_uint16_le(s, OSMINORTYPE_WINDOWS_NT);
out_uint16_le(s, 0x200); /* Protocol version */
out_uint16_le(s, 0); /* pad */
out_uint16_le(s, 0); /* Compression types */
- /* NO_BITMAP_COMPRESSION_HDR 0x0400
- FASTPATH_OUTPUT_SUPPORTED 0x0001 */
if (self->client_info.use_fast_path & 1)
{
- out_uint16_le(s, 0x401);
+ out_uint16_le(s, NO_BITMAP_COMPRESSION_HDR & FASTPATH_OUTPUT_SUPPORTED);
}
else
{
- out_uint16_le(s, 0x400);
+ out_uint16_le(s, NO_BITMAP_COMPRESSION_HDR);
}
out_uint16_le(s, 0); /* Update capability */
out_uint16_le(s, 0); /* Remote unshare capability */