diff --git a/libfreerdp/codec/rfx.c b/libfreerdp/codec/rfx.c index c4ba2d3f8..c95df87a9 100644 --- a/libfreerdp/codec/rfx.c +++ b/libfreerdp/codec/rfx.c @@ -676,10 +676,12 @@ static BOOL rfx_process_message_region(RFX_CONTEXT* context, RFX_MESSAGE* messag if (message->numRects < 1) { - /* Unfortunately, it isn't documented. - It seems that server asks to clip whole session when numRects = 0. - Issue: https://github.com/FreeRDP/FreeRDP/issues/1738 */ - WLog_ERR(TAG, "no rects. Clip whole session."); + /* + If numRects is zero the decoder must generate a rectangle with + coordinates (0, 0, width, height). + See [MS-RDPRFX] (revision >= 17.0) 2.2.2.3.3 TS_RFX_REGION + https://msdn.microsoft.com/en-us/library/ff635233.aspx + */ if (!(message->rects = (RFX_RECT*) malloc(sizeof(RFX_RECT)))) return FALSE;