Remove AwaitCapabilities

This commit is contained in:
akallabeth 2022-10-21 10:19:48 +02:00 committed by Martin Fleisz
parent 58d7e1a2be
commit 06c2ab76e0
3 changed files with 1 additions and 6 deletions

View File

@ -1467,7 +1467,6 @@ BOOL rdp_server_reactivate(rdpRdp* rdp)
if (!rdp_send_demand_active(rdp))
return FALSE;
rdp->AwaitCapabilities = TRUE;
return TRUE;
}
@ -1492,7 +1491,6 @@ BOOL rdp_server_transition_to_state(rdpRdp* rdp, CONNECTION_STATE state)
switch (state)
{
case CONNECTION_STATE_CAPABILITIES_EXCHANGE:
rdp->AwaitCapabilities = FALSE;
break;
case CONNECTION_STATE_FINALIZATION:

View File

@ -748,7 +748,6 @@ static int peer_recv_callback_internal(rdpTransport* transport, wStream* s, void
}
case CONNECTION_STATE_CAPABILITIES_EXCHANGE:
if (!rdp->AwaitCapabilities)
{
if (client->Capabilities && !client->Capabilities(client))
{
@ -762,8 +761,6 @@ static int peer_recv_callback_internal(rdpTransport* transport, wStream* s, void
}
else
{
rdp->AwaitCapabilities = TRUE;
if (s)
{
ret = peer_recv_pdu(client, s);

View File

@ -192,7 +192,7 @@ struct rdp_rdp
UINT32 errorInfo;
UINT32 finalize_sc_pdus;
BOOL resendFocus;
BOOL AwaitCapabilities;
UINT64 inBytes;
UINT64 inPackets;
UINT64 outBytes;