vbscript: Use CP_ACP instead of its numeric value.

This commit is contained in:
Nikolay Sivov 2015-03-08 13:51:37 +03:00 committed by Alexandre Julliard
parent 44360823b9
commit 4b15e6fd09
1 changed files with 1 additions and 1 deletions

View File

@ -1303,7 +1303,7 @@ static HRESULT Global_Chr(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIA
buf[len++] = c>>8;
if(!len || IsDBCSLeadByteEx(cp, buf[0]))
buf[len++] = c;
if(!MultiByteToWideChar(0, 0, buf, len, &ch, 1)) {
if(!MultiByteToWideChar(CP_ACP, 0, buf, len, &ch, 1)) {
WARN("invalid arg %d, cp %d\n", c, cp);
return E_FAIL;
}