[core,capabilities] fix pointer cache size read
@@ -1080,7 +1080,6 @@ static BOOL rdp_apply_pointer_capability_set(rdpSettings* settings, const rdpSet
if (!src->ColorPointerFlag)
settings->ColorPointerFlag = FALSE;
- if (settings->ServerMode)
settings->PointerCacheSize = src->PointerCacheSize;
return TRUE;
@@ -1112,7 +1111,7 @@ static BOOL rdp_read_pointer_capability_set(wStream* s, rdpSettings* settings)
WINPR_ASSERT(settings);
settings->ColorPointerFlag = colorPointerFlag;
- settings->PointerCacheSize = pointerCacheSize;
+ settings->PointerCacheSize = MAX(pointerCacheSize, colorPointerCacheSize);
return TRUE;
}
