[server] add RLGR_MODE checks when read from settings

This commit is contained in:
akallabeth
2026-01-09 09:19:20 +01:00
parent 9feaf16a86
commit 5cd12aed13
2 changed files with 6 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ static BOOL test_peer_context_new(freerdp_peer* client, rdpContext* ctx)
{
const UINT32 rlgr = freerdp_settings_get_uint32(ctx->settings, FreeRDP_RemoteFxRlgrMode);
rfx_context_set_mode(context->rfx_context, rlgr);
rfx_context_set_mode(context->rfx_context, WINPR_ASSERTING_INT_CAST(RLGR_MODE, rlgr));
}
if (!(context->nsc_context = nsc_context_new()))