Fixed default return for missing SurfaceBits callback

This commit is contained in:
akallabeth 2021-09-03 13:28:49 +02:00 committed by akallabeth
parent d7d7c45b0e
commit c17ba281a3

View File

@ -92,13 +92,7 @@ static BOOL update_recv_surfcmd_surface_bits(rdpUpdate* update, wStream* s, UINT
if (!update_recv_surfcmd_bitmap_ex(s, &cmd.bmp))
goto fail;
if (!update->SurfaceBits)
{
WLog_ERR(TAG, "Missing callback update->SurfaceBits");
goto fail;
}
return update->SurfaceBits(update->context, &cmd);
return IFCALLRESULT(TRUE, update->SurfaceBits, update->context, &cmd);
fail:
return FALSE;
}