[PATCH 1/3] libs/port: Make wine_utf8_wcstombs compute the resulting length on NULL input.

Alexandre Julliard julliard at winehq.org
Thu Sep 12 03:34:05 CDT 2019


Dmitry Timoshkov <dmitry at baikal.ru> writes:

> @@ -99,7 +99,7 @@ int wine_utf8_wcstombs( int flags, const WCHAR *src, int srclen, char *dst, int
>  {
>      int len;
>  
> -    if (!dstlen) return get_length_wcs_utf8( flags, src, srclen );
> +    if (!dst) return get_length_wcs_utf8( flags, src, srclen );

That's not consistent with the other conversion functions. Please fix
the caller instead.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list