From f07152d7b763aa736f9640e98f8cac91ac5bdf30 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 10 Apr 2008 12:01:52 +0100 Subject: [PATCH] mshtml: Fix the buffer length being passed into MultiByteToWideChar in set_registry. --- dlls/mshtml/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c index edb5f58e75c..b991c4958bb 100644 --- a/dlls/mshtml/install.c +++ b/dlls/mshtml/install.c @@ -113,7 +113,7 @@ static void set_registry(LPCSTR install_dir) len = MultiByteToWideChar(CP_ACP, 0, install_dir, -1, NULL, 0)-1; gecko_path = heap_alloc((len+1)*sizeof(WCHAR)+sizeof(wszWineGecko)); - MultiByteToWideChar(CP_ACP, 0, install_dir, -1, gecko_path, (len+1)*sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, install_dir, -1, gecko_path, len+1); if (len && gecko_path[len-1] != '\\') gecko_path[len++] = '\\';