Marcus Meissner : mshtml: Fixed last argument to MultiByteToWideChar.
Alexandre Julliard
julliard at winehq.org
Thu Feb 5 09:20:56 CST 2009
Module: wine
Branch: master
Commit: 2febaf64383de5ba68a436067a6f369c79078fbd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2febaf64383de5ba68a436067a6f369c79078fbd
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Wed Feb 4 19:02:26 2009 +0100
mshtml: Fixed last argument to MultiByteToWideChar.
---
dlls/mshtml/install.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c
index 736fee0..9bff0e6 100644
--- a/dlls/mshtml/install.c
+++ b/dlls/mshtml/install.c
@@ -444,7 +444,7 @@ static LPWSTR get_url(void)
if(size > sizeof(httpW) && !memcmp(url, httpW, sizeof(httpW))) {
strcatW(url, v_formatW);
- MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), -1);
+ MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), (size-strlenW(url))/sizeof(WCHAR));
}
TRACE("Got URL %s\n", debugstr_w(url));
More information about the wine-cvs
mailing list