Fix access to wrong variable in sample server

This commit is contained in:
Armin Novak 2022-01-11 17:08:32 +01:00 committed by akallabeth
parent 1fedd36f65
commit 5b2cb753bb
1 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ static void test_peer_draw_icon(freerdp_peer* client, UINT32 x, UINT32 y)
update = client->update;
WINPR_ASSERT(update);
if (client->update->dump_rfx)
if (freerdp_settings_get_bool(client->settings, FreeRDP_DumpRemoteFx))
return;
if (context->icon_width < 1 || !context->activated)
@ -723,7 +723,7 @@ static BOOL tf_peer_activate(freerdp_peer* client)
if (info->test_pcap_file != NULL)
{
client->update->dump_rfx = TRUE;
freerdp_settings_set_bool(client->settings, FreeRDP_DumpRemoteFx, TRUE);
if (!tf_peer_dump_rfx(client))
return FALSE;