From 4b15e6fd094a496e7f4bae549253931562e62e44 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 8 Mar 2015 13:51:37 +0300 Subject: [PATCH] vbscript: Use CP_ACP instead of its numeric value. --- dlls/vbscript/global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/vbscript/global.c b/dlls/vbscript/global.c index 448b886cf98..74acff7b3fd 100644 --- a/dlls/vbscript/global.c +++ b/dlls/vbscript/global.c @@ -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; }