From 91800118a859e3040a55d090bc36e933964f06c8 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 26 Mar 2008 15:24:20 +0100 Subject: [PATCH] mshtml: Pass buffer length to MultiByteToWideChar instead of -1. --- dlls/mshtml/mshtml_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 151d266f4b9..6d44f32d7b5 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -592,7 +592,7 @@ static inline WCHAR *heap_strdupAtoW(const char *str) len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0); ret = heap_alloc(len*sizeof(WCHAR)); - MultiByteToWideChar(CP_ACP, 0, str, -1, ret, -1); + MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len); } return ret; -- 2.11.4.GIT