[core] fix persistent bitmap cache setting

* Only activate if both, client and server support the capability
* Use settings getter to access setting
This commit is contained in:
Armin Novak
2023-01-09 15:56:20 +01:00
committed by akallabeth
parent 1dc2225bd2
commit 70f6c09ff4
6 changed files with 15 additions and 13 deletions

View File

@@ -296,7 +296,7 @@ static int bitmap_cache_save_persistent(rdpBitmapCache* bitmapCache)
if (version != 2)
return 0; /* persistent bitmap cache already saved in egfx channel */
if (!settings->BitmapCachePersistEnabled)
if (!freerdp_settings_get_bool(settings, FreeRDP_BitmapCachePersistEnabled))
return 0;
if (!settings->BitmapCachePersistFile)