[PATCH] kernel32: Introduce lightweight version of GetTimeZoneInformation.

Alexandre Julliard julliard at winehq.org
Mon Dec 17 08:04:48 CST 2018


Akihiro Sagawa <sagawa.aki at gmail.com> writes:

> @@ -340,6 +340,15 @@ static BOOL TIME_GetSpecificTimeZoneKey( const WCHAR *key_name, HANDLE *result )
>      return TRUE;
>  }
>  
> +/*
> + * Lightweight version of GetTimeZoneInformation.
> + * If translated time zone name is useless, use this function instead.
> + */
> +static inline DWORD TIME_GetTimeZoneInformation(TIME_ZONE_INFORMATION *tzinfo)
> +{
> +    return RtlQueryTimeZoneInformation((RTL_TIME_ZONE_INFORMATION *)tzinfo);
> +}

This wrapper doesn't seem very useful. Also note that the return value
is different for Rtl functions.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list