encoder, remove check for UINT16_MAX, not really needed

master
Jay Sorg 8 years ago committed by jsorg71
parent 79796b77b7
commit b8c79452f6

@ -328,8 +328,7 @@ process_enc_rfx(struct xrdp_encoder *self, XRDP_ENC_DATA *enc)
out_data = NULL; out_data = NULL;
out_data_bytes = 0; out_data_bytes = 0;
if ((enc->num_crects > 0) && (enc->num_crects <= UINT16_MAX) && if ((enc->num_crects > 0) && (enc->num_drects > 0))
(enc->num_drects > 0) && (enc->num_drects <= UINT16_MAX))
{ {
alloc_bytes = XRDP_SURCMD_PREFIX_BYTES; alloc_bytes = XRDP_SURCMD_PREFIX_BYTES;
alloc_bytes += self->max_compressed_bytes; alloc_bytes += self->max_compressed_bytes;

Loading…
Cancel
Save