capabilities: fix MultifragMaxRequestSize parsing

- no reason to limit this to RemoteFX
- network and settings values were incorrectly compared
This commit is contained in:
Norbert Federa 2014-03-19 10:52:05 +01:00
parent 037fb5e4eb
commit 313c97df88

View File

@ -2274,7 +2274,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)
if (multifragMaxRequestSize < settings->MultifragMaxRequestSize)
settings->MultifragMaxRequestSize = multifragMaxRequestSize;
return TRUE;