mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 21:29:49 +00:00
msvcrt: Avoid passing an invalid LCID to LCMapStringW.
Because it complains as follows on startup in Japanese locale:
002c:err:msvcrt:create_mbcinfo WideCharToMultiByte failed for cp 932, ret=0 (exp 196), error=122
This happens after commit c2a455a20d
.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
21a1c30972
commit
b4f20eec46
|
@ -333,8 +333,8 @@ threadmbcinfo* create_mbcinfo(int cp, LCID lcid, threadmbcinfo *old_mbcinfo)
|
|||
}
|
||||
|
||||
GetStringTypeW(CT_CTYPE1, bufW, charcount, chartypes);
|
||||
LCMapStringW(lcid, LCMAP_LOWERCASE, bufW, charcount, lowW, charcount);
|
||||
LCMapStringW(lcid, LCMAP_UPPERCASE, bufW, charcount, upW, charcount);
|
||||
LCMapStringW(mbcinfo->mblcid, LCMAP_LOWERCASE, bufW, charcount, lowW, charcount);
|
||||
LCMapStringW(mbcinfo->mblcid, LCMAP_UPPERCASE, bufW, charcount, upW, charcount);
|
||||
|
||||
charcount = 0;
|
||||
for (i = 0; i < maxchar; i++)
|
||||
|
|
Loading…
Reference in a new issue