libfreerdp-core: fix server-side update encoding edge case

This commit is contained in:
Marc-André Moreau
2013-07-28 16:31:38 -04:00
parent fdcf3a75be
commit 8a4e83bdfb
2 changed files with 14 additions and 5 deletions

View File

@@ -517,6 +517,12 @@ static BOOL update_check_flush(rdpContext* context, int size)
s = update->us;
if (!update->us)
{
update->BeginPaint(context);
return FALSE;
}
if (Stream_GetPosition(s) + size + 256 >= settings->MultifragMaxRequestSize)
{
update_flush(context);