Merge pull request #913 from llyzs/llyzs
libfreerdp-core: disable frame ack if server does not send the capability
This commit is contained in:
commit
888fcf8d47
@ -2303,6 +2303,10 @@ void rdp_write_confirm_active(STREAM* s, rdpSettings* settings)
|
||||
rdp_write_frame_acknowledge_capability_set(s, settings);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
settings->FrameAcknowledge = 0;
|
||||
}
|
||||
|
||||
if (settings->ReceivedCapabilities[CAPSET_TYPE_BITMAP_CACHE_V3_CODEC_ID])
|
||||
{
|
||||
|
@ -499,9 +499,12 @@ static void update_send_frame_acknowledge(rdpContext* context, UINT32 frameId)
|
||||
STREAM* s;
|
||||
rdpRdp* rdp = context->rdp;
|
||||
|
||||
s = rdp_data_pdu_init(rdp);
|
||||
stream_write_UINT32(s, frameId);
|
||||
//rdp_send_data_pdu(rdp, s, DATA_PDU_TYPE_FRAME_ACKNOWLEDGE, rdp->mcs->user_id);
|
||||
if (rdp->settings->ReceivedCapabilities[CAPSET_TYPE_FRAME_ACKNOWLEDGE])
|
||||
{
|
||||
s = rdp_data_pdu_init(rdp);
|
||||
stream_write_UINT32(s, frameId);
|
||||
rdp_send_data_pdu(rdp, s, DATA_PDU_TYPE_FRAME_ACKNOWLEDGE, rdp->mcs->user_id);
|
||||
}
|
||||
}
|
||||
|
||||
static void update_send_synchronize(rdpContext* context)
|
||||
|
Loading…
Reference in New Issue
Block a user