Possible WideCharToMultiByte CP_UNIXCP bug

Alexandre Julliard julliard at winehq.org
Wed Sep 4 09:32:14 CDT 2019


Gabriel Ivăncescu <gabrielopcode at gmail.com> writes:

> The problem seems to be in the fact that the 'used' parameter is
> *never* set in this case. It passes 'used ? &used_tmp : NULL' and then
> breaks out of the switch -- and the 'if (used) *used = used_tmp;'
> statement only applies in the default case of the switch. So I'm
> basically using an uninitialized variable.
>
> Is this intended, or a bug?

It's a bug, thanks for catching it.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list