[warnings] fix integer narrowing
This commit is contained in:
parent
5e6d0a4183
commit
429474cd0f
@ -303,7 +303,7 @@ static BOOL transport_default_connect_tls(rdpTransport* transport)
|
||||
|
||||
tls->hostname = settings->ServerHostname;
|
||||
tls->serverName = settings->UserSpecifiedServerName;
|
||||
tls->port = settings->ServerPort;
|
||||
tls->port = MIN(UINT16_MAX, settings->ServerPort);
|
||||
|
||||
if (tls->port == 0)
|
||||
tls->port = 3389;
|
||||
|
Loading…
Reference in New Issue
Block a user