13 Mar
2014
13 Mar
'14
3:45 p.m.
On 03/13/14 13:32, Alexandre Julliard wrote:
Piotr Caban <piotr(a)codeweavers.com> writes:
+ if(!MultiByteToWideChar(locinfo->lc_codepage, + MB_ERR_INVALID_CHARS, (char*)str, p-str, &wide, 1)) + return c; + + lower = tolowerW(wide); + if(lower == wide) + return str[0] + (str[1]<<8); + + WideCharToMultiByte(locinfo->lc_codepage, 0, + &lower, 1, (char*)str, 2, NULL, NULL);
You should probably also check the resulting length here.
I've sent a fixed version. Thanks.