[3/5] ntdll: Allow passing NULL buffer to printf functions
Alexandre Julliard
julliard at winehq.org
Fri Dec 20 04:11:38 CST 2013
Sebastian Lackner <sebastian at fds-team.de> writes:
> @@ -72,7 +73,12 @@ static inline int pf_output_stringW( pf_output *out, LPCWSTR str, int len )
>
> if( len < 0 )
> len = strlenW( str );
> - if( out->unicode )
> + if (!out->buf.X)
> + {
> + out->used += len;
> + return len;
> + }
> + else if (out->unicode)
That's not correct for Unicode conversions.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list