Commit 4b15e6fd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

vbscript: Use CP_ACP instead of its numeric value.

parent 44360823
...@@ -1303,7 +1303,7 @@ static HRESULT Global_Chr(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIA ...@@ -1303,7 +1303,7 @@ static HRESULT Global_Chr(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIA
buf[len++] = c>>8; buf[len++] = c>>8;
if(!len || IsDBCSLeadByteEx(cp, buf[0])) if(!len || IsDBCSLeadByteEx(cp, buf[0]))
buf[len++] = c; 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); WARN("invalid arg %d, cp %d\n", c, cp);
return E_FAIL; return E_FAIL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment