mshtml: Fixed size passed to MultiByteToWideChar.

oldstable
Marcus Meissner 2009-02-05 22:03:59 +01:00 committed by Alexandre Julliard
parent fb3d3d020d
commit ad0a5f1bd2
1 changed files with 1 additions and 1 deletions

View File

@ -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));