Added macro freerdp_set_last_error_if_not
authorArmin Novak <armin.novak@thincast.com>
Thu, 9 Jan 2020 09:34:27 +0000 (10:34 +0100)
committerArmin Novak <armin.novak@thincast.com>
Thu, 9 Jan 2020 09:34:27 +0000 (10:34 +0100)
commit895cb8f9444e7f2c3d09de84d748a40b21c5f8af
tree15e64c819aecdfbe14a473701440c82b6464f7ac
parent3e3458cc3c31f357ab974d9149a96bc931b4791b
Added macro freerdp_set_last_error_if_not

This macro replaces the multiple instances where the current
error state is checked before setting an optional error state.

Signed-off-by: Armin Novak <armin.novak@thincast.com>
include/freerdp/freerdp.h
libfreerdp/core/connection.c
libfreerdp/core/freerdp.c
libfreerdp/core/gateway/rdg.c
libfreerdp/core/gateway/rpc.c
libfreerdp/core/gateway/rpc_client.c
libfreerdp/core/mcs.c
libfreerdp/core/tcp.c
libfreerdp/core/transport.c