[server] Fix rdp_peer_handle_state_demand_active

* Return type is state_run_t
* Fix use, check for success
This commit is contained in:
akallabeth 2022-11-22 11:05:57 +01:00 committed by akallabeth
parent a6593f2dc1
commit 68bd3b63ae
2 changed files with 4 additions and 2 deletions

View File

@ -1584,7 +1584,9 @@ BOOL rdp_server_reactivate(rdpRdp* rdp)
rdp_finalize_set_flag(rdp, FINALIZE_DEACTIVATE_REACTIVATE);
if (!rdp_server_transition_to_state(rdp, CONNECTION_STATE_CAPABILITIES_EXCHANGE_DEMAND_ACTIVE))
return FALSE;
return rdp_peer_handle_state_demand_active(client) > 0;
state_run_t rc = rdp_peer_handle_state_demand_active(client);
return state_run_success(rc);
}
BOOL rdp_server_transition_to_state(rdpRdp* rdp, CONNECTION_STATE state)

View File

@ -26,6 +26,6 @@
#include <freerdp/peer.h>
FREERDP_LOCAL int rdp_peer_handle_state_demand_active(freerdp_peer* client);
FREERDP_LOCAL state_run_t rdp_peer_handle_state_demand_active(freerdp_peer* client);
#endif /* FREERDP_LIB_CORE_PEER_H */