Module: wine Branch: master Commit: ad0a5f1bd25be48a84e587acdce5cad4bbb96c13 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad0a5f1bd25be48a84e587acdc... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Thu Feb 5 22:03:59 2009 +0100 mshtml: Fixed size passed 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 df8c8be..15f6d93 100644 --- a/dlls/mshtml/install.c +++ b/dlls/mshtml/install.c @@ -447,7 +447,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), (size-strlenW(url))/sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), size/sizeof(WCHAR)-strlenW(url)); } TRACE("Got URL %s\n", debugstr_w(url));