Marcus Meissner : mshtml: Fixed last argument to MultiByteToWideChar.
Module: wine Branch: master Commit: 2febaf64383de5ba68a436067a6f369c79078fbd URL: http://source.winehq.org/git/wine.git/?a=commit;h=2febaf64383de5ba68a436067a... Author: Marcus Meissner <marcus(a)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));
participants (1)
-
Alexandre Julliard