mirror of https://github.com/FreeRDP/FreeRDP
[core,timezone] initialize ClientTimeZone early
Initialize ClientTimeZone in freerdp_settings_new to allow replacing the default later on in command line parser or client connection callbacks
This commit is contained in:
parent
8b382c8cec
commit
fc21b82880
|
@ -693,6 +693,9 @@ rdpSettings* freerdp_settings_new(DWORD flags)
|
|||
if (!settings->ClientTimeZone)
|
||||
goto out_fail;
|
||||
|
||||
if (!settings->ServerMode)
|
||||
GetTimeZoneInformation(settings->ClientTimeZone);
|
||||
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_TcpKeepAlive, TRUE) ||
|
||||
!freerdp_settings_set_uint32(settings, FreeRDP_TcpKeepAliveRetries, 3) ||
|
||||
!freerdp_settings_set_uint32(settings, FreeRDP_TcpKeepAliveDelay, 5) ||
|
||||
|
|
|
@ -143,7 +143,6 @@ BOOL rdp_write_client_time_zone(wStream* s, rdpSettings* settings)
|
|||
if (!tz)
|
||||
return FALSE;
|
||||
|
||||
GetTimeZoneInformation(tz);
|
||||
if (!Stream_EnsureRemainingCapacity(s, 4ull + sizeof(tz->StandardName)))
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue