core: properly set MultifragMaxRequestSize for rfx

The RemoteFX spec states that the MultifragMaxRequestSize must be at
least as big as the one received by the server. If MultifragMaxRequestSize
is too small the server disables  RemoteFX (Codec).
This commit is contained in:
Bernhard Miklautz 2013-05-21 15:15:49 +02:00
parent a6cfa931b5
commit a0fc0513e5

View File

@ -2196,6 +2196,8 @@ BOOL rdp_read_multifragment_update_capability_set(wStream* s, UINT16 length, rdp
return FALSE;
Stream_Read_UINT32(s, multifragMaxRequestSize); /* MaxRequestSize (4 bytes) */
if (settings->RemoteFxCodec && settings->MultifragMaxRequestSize < multifragMaxRequestSize)
settings->MultifragMaxRequestSize = multifragMaxRequestSize;
return TRUE;
}