Fixed bug with SurfaceFrameMarker callback

if FreeRDP_DeactivateClientDecoding allow NULL callbacks
This commit is contained in:
akallabeth
2022-10-21 12:56:58 +02:00
committed by David Fort
parent ef1a3b0af6
commit 2458a526b8

View File

@@ -177,6 +177,9 @@ static BOOL update_recv_surfcmd_frame_marker(rdpUpdate* update, wStream* s)
if (!update->SurfaceFrameMarker)
{
WINPR_ASSERT(update->context);
if (freerdp_settings_get_bool(update->context->settings, FreeRDP_DeactivateClientDecoding))
return TRUE;
WLog_ERR(TAG, "Missing callback update->SurfaceFrameMarker");
return FALSE;
}