[core,capabilities] Always send PointerCacheSize

While the field is optional it can always be sent with a value of 0 to
have the same meaning as leaving it out.
This commit is contained in:
akallabeth 2022-11-22 15:26:27 +01:00 committed by akallabeth
parent 6e82adea17
commit f2545a2ad7

View File

@ -1144,11 +1144,7 @@ static BOOL rdp_write_pointer_capability_set(wStream* s, const rdpSettings* sett
Stream_Write_UINT16(s, colorPointerFlag); /* colorPointerFlag (2 bytes) */
Stream_Write_UINT16(
s, (UINT16)settings->ColorPointerCacheSize); /* colorPointerCacheSize (2 bytes) */
if (settings->LargePointerFlag)
{
Stream_Write_UINT16(s, (UINT16)settings->PointerCacheSize); /* pointerCacheSize (2 bytes) */
}
Stream_Write_UINT16(s, (UINT16)settings->PointerCacheSize); /* pointerCacheSize (2 bytes) */
return rdp_capability_set_finish(s, (UINT16)header, CAPSET_TYPE_POINTER);
}