[WideChar conversion improvements - 1/5] Add a new check for 'dstlen < 0' to WideCharToMultiByte
Alexandre Julliard
julliard at winehq.org
Tue Jul 29 06:51:13 CDT 2008
"Colin Finck" <mail at colinfinck.de> writes:
> @@ -1893,7 +1893,7 @@ INT WINAPI WideCharToMultiByte( UINT page, DWORD flags, LPCWSTR src, INT srclen,
> const union cptable *table;
> int ret, used_tmp;
>
> - if (!src || (!dst && dstlen))
> + if (!src || (!dst && dstlen) || dstlen < 0)
There are places in Wine that use a negative dstlen, you have to fix
them first.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list