Piotr Caban <piotr(a)codeweavers.com> writes:
+ if(!WideCharToMultiByte(locinfo->lc_codepage, 0,
+ &lower, 1, (char*)str, 2, NULL, NULL))
+ return c;
You'd also have to handle the case of the length being just 1.
--
Alexandre Julliard
julliard(a)winehq.org