core: Fix applying of pointer capabilities

Only apply the pointer cache size to the settings if we are in server
mode. This check got lost in a recent refactoring to caps parsing.
This commit is contained in:
Martin Fleisz 2022-11-07 11:27:48 +00:00 committed by akallabeth
parent 55015fd59b
commit ebc8cd1d4a

View File

@ -1082,7 +1082,8 @@ static BOOL rdp_apply_pointer_capability_set(rdpSettings* settings, const rdpSet
if (!src->ColorPointerFlag)
settings->ColorPointerFlag = FALSE;
settings->PointerCacheSize = src->PointerCacheSize;
if (settings->ServerMode)
settings->PointerCacheSize = src->PointerCacheSize;
return TRUE;
}