Nikolay Sivov : vbscript: Use CP_ACP instead of its numeric value.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 9 08:43:17 CDT 2015


Module: wine
Branch: master
Commit: 4b15e6fd094a496e7f4bae549253931562e62e44
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4b15e6fd094a496e7f4bae549253931562e62e44

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Mar  8 13:51:37 2015 +0300

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 448b886..74acff7 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;
     }




More information about the wine-cvs mailing list