summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_rdp.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-03-17 02:37:25 +0000
committerjsorg71 <jsorg71>2006-03-17 02:37:25 +0000
commitfbecd46eaabbdf7c770eed3d0de0ec1de6bcc7c8 (patch)
treed3e31df89a8c9326c0bec68b4a4a40793c514e12 /libxrdp/xrdp_rdp.c
parentb91f25deef43cce2d528e2e121dab32941735dea (diff)
downloadxrdp-proprietary-fbecd46eaabbdf7c770eed3d0de0ec1de6bcc7c8.tar.gz
xrdp-proprietary-fbecd46eaabbdf7c770eed3d0de0ec1de6bcc7c8.zip
don't allow 24 or 15 bpp connections for now
Diffstat (limited to 'libxrdp/xrdp_rdp.c')
-rw-r--r--libxrdp/xrdp_rdp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index ed69c17e..39aa8896 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -294,6 +294,16 @@ xrdp_rdp_parse_client_mcs_data(struct xrdp_rdp* self)
self->client_info.bpp = 24;
break;
}
+ /* todo - for now, don't allow unsupported bpp connections
+ xrdp_rdp_send_demand_active will tell the client what bpp to use */
+ if (self->client_info.bpp == 24)
+ {
+ self->client_info.bpp = 16;
+ }
+ if (self->client_info.bpp == 15)
+ {
+ self->client_info.bpp = 16;
+ }
p->p = p->data;
DEBUG(("client width %d, client height %d bpp %d\r\n",
self->client_info.width, self->client_info.height,